From efda4e97b0bb587467368758bd755e25ea7cc2ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marjolaine=20V=C3=A9?= Date: Sun, 18 Feb 2018 17:55:48 +0100 Subject: [PATCH] [Responsive] List of polls for admins with scrollbar --- css/app/create_poll.css | 6 --- css/style.css | 6 +++ tpl/admin/polls.tpl | 103 ++++++++++++++++++++-------------------- 3 files changed, 58 insertions(+), 57 deletions(-) diff --git a/css/app/create_poll.css b/css/app/create_poll.css index 58b79eb..18935fc 100644 --- a/css/app/create_poll.css +++ b/css/app/create_poll.css @@ -22,10 +22,4 @@ border-bottom: 4px dashed; border-top: 0 none; content: ""; -} - -@media (max-width: 767px) { - #optionnal { - margin-top: 15px; - } } \ No newline at end of file diff --git a/css/style.css b/css/style.css index bbdd74a..ee16b7b 100644 --- a/css/style.css +++ b/css/style.css @@ -521,6 +521,12 @@ table.results > tbody > tr:hover > td .glyphicon { #poll_search { cursor: pointer; } +.table-of-polls { + overflow-x: scroll; + margin-bottom: 0; + border: 0; + box-shadow: none; +} /* Studs */ .password_request { diff --git a/tpl/admin/polls.tpl b/tpl/admin/polls.tpl index d7a00df..6fb872d 100644 --- a/tpl/admin/polls.tpl +++ b/tpl/admin/polls.tpl @@ -64,59 +64,60 @@
{if $count == $total}{$count}{else}{$count} / {$total}{/if} {__('Admin', 'polls in the database at this time')}
- - - - - - - - - - - - - {foreach $polls as $poll} +
+
{__('Admin', 'Title')}{__('Admin', 'Author')}{__('Admin', 'Email')}{__('Admin', 'Expiration date')}{__('Admin', 'Votes')}{__('Admin', 'Poll ID')}{__('Admin', 'Actions')}
- - - - - - {if strtotime($poll->end_date) > time()} - - {else} - - {/if} - - - - - + + + + + + + + - {/foreach} -
- {if $poll->format === 'D'} - - {__('Generic', 'Date')} - {else} - - {__('Generic', 'Classic')} - {/if} - {$poll->title|html}{$poll->admin_name|html}{$poll->admin_mail|html}{date('d/m/y', strtotime($poll->end_date))}{strtotime($poll->end_date)|date_format:'d/m/Y'}{$poll->votes|html}{$poll->id|html}{__('Admin', 'See the poll')}{__('Admin', 'Change the poll')} - {__('Admin', 'Title')}{__('Admin', 'Author')}{__('Admin', 'Email')}{__('Admin', 'Expiration date')}{__('Admin', 'Votes')}{__('Admin', 'Poll ID')}{__('Admin', 'Actions')}
+ {foreach $polls as $poll} + + + {if $poll->format === 'D'} + + {__('Generic', 'Date')} + {else} + + {__('Generic', 'Classic')} + {/if} + + {$poll->title|html} + {$poll->admin_name|html} + {$poll->admin_mail|html} + + {if strtotime($poll->end_date) > time()} + {date('d/m/y', strtotime($poll->end_date))} + {else} + {strtotime($poll->end_date)|date_format:'d/m/Y'} + {/if} + {$poll->votes|html} + {$poll->id|html} + {__('Admin', 'See the poll')} + {__('Admin', 'Change the poll')} + +