Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
framadate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
framadate
Commits
3b9dd1fc
Commit
3b9dd1fc
authored
9 years ago
by
Olivier Perez
Browse files
Options
Downloads
Patches
Plain Diff
Buttonify edit and delete line
parent
f6be9384
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
css/style.css
+5
-0
5 additions, 0 deletions
css/style.css
tpl/part/vote_table_classic.tpl
+2
-2
2 additions, 2 deletions
tpl/part/vote_table_classic.tpl
tpl/part/vote_table_date.tpl
+2
-2
2 additions, 2 deletions
tpl/part/vote_table_date.tpl
with
9 additions
and
4 deletions
css/style.css
+
5
−
0
View file @
3b9dd1fc
...
...
@@ -142,6 +142,11 @@ caption {
font-weight
:
bold
;
}
.results
a
.btn-default.btn-sm
{
padding
:
3px
7px
;
font-size
:
0.7em
;
}
/* adminstuds.php */
#title-form
h3
.btn-edit
,
#email-form
.btn-edit
,
...
...
This diff is collapsed.
Click to expand it.
tpl/part/vote_table_classic.tpl
+
2
−
2
View file @
3b9dd1fc
...
...
@@ -95,12 +95,12 @@
{
if
$active
&&
!
$expired
&&
(
$poll
->
editable
==
constant
(
'Framadate\Editable::EDITABLE_BY_ALL'
)
or
$admin
)
}
<td>
<a
href=
"
{
if
$admin
}{
poll_url
id
=
$poll
->
admin_id
vote_id
=
$vote
->
uniqId
admin
=
true
}{
else
}{
poll_url
id
=
$poll
->
id
vote_id
=
$vote
->
uniqId
}{/
if
}
"
class=
"btn btn-
link
btn-sm"
title=
"{__('Poll results', 'Edit the line:')|html}
{
$vote
->
name
|
html
}
"
>
<a
href=
"
{
if
$admin
}{
poll_url
id
=
$poll
->
admin_id
vote_id
=
$vote
->
uniqId
admin
=
true
}{
else
}{
poll_url
id
=
$poll
->
id
vote_id
=
$vote
->
uniqId
}{/
if
}
"
class=
"btn btn-
default
btn-sm"
title=
"{__('Poll results', 'Edit the line:')|html}
{
$vote
->
name
|
html
}
"
>
<span
class=
"glyphicon glyphicon-pencil"
></span><span
class=
"sr-only"
>
{__('Generic', 'Edit')}
</span>
</a>
{
if
$admin
}
<a
href=
"
{
poll_url
id
=
$admin_poll_id
admin
=
true
action
=
'delete_vote'
action_value
=
$vote
->
id
}
"
class=
"btn btn-
link
btn-sm"
class=
"btn btn-
default
btn-sm"
title=
"{__('Poll results', 'Remove the line:')}
{
$vote
->
name
|
html
}
"
>
<span
class=
"glyphicon glyphicon-remove text-danger"
></span><span
class=
"sr-only"
>
{__('Generic', 'Remove')}
</span>
</a>
...
...
This diff is collapsed.
Click to expand it.
tpl/part/vote_table_date.tpl
+
2
−
2
View file @
3b9dd1fc
...
...
@@ -144,12 +144,12 @@
{
if
$active
&&
!
$expired
&&
(
$poll
->
editable
==
constant
(
'Framadate\Editable::EDITABLE_BY_ALL'
)
or
$admin
)
}
<td>
<a
href=
"
{
if
$admin
}{
poll_url
id
=
$poll
->
admin_id
vote_id
=
$vote
->
uniqId
admin
=
true
}{
else
}{
poll_url
id
=
$poll
->
id
vote_id
=
$vote
->
uniqId
}{/
if
}
"
class=
"btn btn-
link
btn-sm"
title=
"{__('Poll results', 'Edit the line:')|escape}
{
$vote
->
name
|
html
}
"
>
<a
href=
"
{
if
$admin
}{
poll_url
id
=
$poll
->
admin_id
vote_id
=
$vote
->
uniqId
admin
=
true
}{
else
}{
poll_url
id
=
$poll
->
id
vote_id
=
$vote
->
uniqId
}{/
if
}
"
class=
"btn btn-
default
btn-sm"
title=
"{__('Poll results', 'Edit the line:')|escape}
{
$vote
->
name
|
html
}
"
>
<span
class=
"glyphicon glyphicon-pencil"
></span><span
class=
"sr-only"
>
{__('Generic', 'Edit')}
</span>
</a>
{
if
$admin
}
<a
href=
"
{
poll_url
id
=
$admin_poll_id
admin
=
true
action
=
'delete_vote'
action_value
=
$vote
->
id
}
"
class=
"btn btn-
link
btn-sm"
class=
"btn btn-
default
btn-sm"
title=
"{__('Poll results', 'Remove the line:')}
{
$vote
->
name
|
html
}
"
>
<span
class=
"glyphicon glyphicon-remove text-danger"
></span><span
class=
"sr-only"
>
{__('Generic', 'Remove')}
</span>
</a>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment