From 73a1df84be466db8ace9f678cdf1e6d6575f3677 Mon Sep 17 00:00:00 2001 From: Olivier PEREZ Date: Sun, 18 Jan 2015 16:46:54 +0100 Subject: [PATCH] Improve admin table display --- tpl/admin/polls.tpl | 109 +++++++++++++++++++++++--------------------- 1 file changed, 56 insertions(+), 53 deletions(-) diff --git a/tpl/admin/polls.tpl b/tpl/admin/polls.tpl index 10b659b..59414b0 100644 --- a/tpl/admin/polls.tpl +++ b/tpl/admin/polls.tpl @@ -16,60 +16,63 @@ {/if} -

- {$polls|count} {_('polls in the database at this time')} - {if $log_file} - {_('Logs')} - {/if} -

- - - - - - - - - - - - - {foreach $polls as $poll} - - - - - - - {if strtotime($poll->end_date) > time()} - - {else} - - {/if} - - - - - - - {/foreach} -
{_('Title')}{_('Format')}{_('Author')}{_('Email')}{_('Expiration\'s date')}{_('Users')}{_('Poll ID')}{_('Actions')}
{$poll->title|html} - {if $poll->format === 'D'} - {_('Date')} - {else} - {_('Classic')} - {/if} - {$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}{_('See the poll')}{_('Change the poll')}
- -
- {_('Pages:')} - {for $p=1 to $pages} - {if $p===$page} - {$p} - {else} - {$p} +
+
+ {$polls|count} {_('polls in the database at this time')} + {if $log_file} + {_('Logs')} {/if} - {/for} +
+ + + + + + + + + + + + + + {foreach $polls as $poll} + + + + + + + {if strtotime($poll->end_date) > time()} + + {else} + + {/if} + + + + + + + {/foreach} +
{_('Title')}{_('Format')}{_('Author')}{_('Email')}{_('Expiration\'s date')}{_('Users')}{_('Poll ID')}{_('Actions')}
{$poll->title|html} + {if $poll->format === 'D'} + {_('Date')} + {else} + {_('Classic')} + {/if} + {$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}{_('See the poll')}{_('Change the poll')}
+ +
+ {_('Pages:')} + {for $p=1 to $pages} + {if $p===$page} + {$p} + {else} + {$p} + {/if} + {/for} +
{/block} \ No newline at end of file