From 3b9dd1fc7e018bf8cb866b8111b7567711bec484 Mon Sep 17 00:00:00 2001 From: Olivier Perez <olivier@olivierperez.fr> Date: Wed, 15 Apr 2015 13:43:40 +0200 Subject: [PATCH] Buttonify edit and delete line --- css/style.css | 5 +++++ tpl/part/vote_table_classic.tpl | 4 ++-- tpl/part/vote_table_date.tpl | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/css/style.css b/css/style.css index 718ebea3..e106ee15 100644 --- a/css/style.css +++ b/css/style.css @@ -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, diff --git a/tpl/part/vote_table_classic.tpl b/tpl/part/vote_table_classic.tpl index 840f4bd1..cec9be9b 100644 --- a/tpl/part/vote_table_classic.tpl +++ b/tpl/part/vote_table_classic.tpl @@ -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> diff --git a/tpl/part/vote_table_date.tpl b/tpl/part/vote_table_date.tpl index 04720880..986e3b5d 100644 --- a/tpl/part/vote_table_date.tpl +++ b/tpl/part/vote_table_date.tpl @@ -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> -- GitLab