Admin: Redorder polls column title, format, author, email, expiration's date, users, id, actions

This commit is contained in:
Olivier PEREZ 2015-01-18 12:14:51 +01:00
parent 7e04bdff6d
commit 9098fe0aaa

View File

@ -25,26 +25,25 @@
<table class="table table-bordered"> <table class="table table-bordered">
<tr align="center"> <tr align="center">
<th scope="col">{_('Poll ID')}</th>
<th scope="col">{_('Format')}</th>
<th scope="col">{_('Title')}</th> <th scope="col">{_('Title')}</th>
<th scope="col">{_('Format')}</th>
<th scope="col">{_('Author')}</th> <th scope="col">{_('Author')}</th>
<th scope="col">{_('Email')}</th> <th scope="col">{_('Email')}</th>
<th scope="col">{_('Expiration\'s date')}</th> <th scope="col">{_('Expiration\'s date')}</th>
<th scope="col">{_('Users')}</th> <th scope="col">{_('Users')}</th>
<th scope="col">{_('Poll ID')}</th>
<th scope="col" colspan="3">{_('Actions')}</th> <th scope="col" colspan="3">{_('Actions')}</th>
</tr> </tr>
{foreach $polls as $poll} {foreach $polls as $poll}
<tr align="center"> <tr align="center">
<td>{$poll->id|html}</td> <td>{$poll->title|html}</td>
<td> <td>
{if $poll->format === 'D'} {if $poll->format === 'D'}
<span class="glyphicon glyphicon-calendar" aria-hidden="true"></span><span class="sr-only">{_('Date')}</span> <span class="glyphicon glyphicon-calendar" aria-hidden="true" title="{_('Date')}"></span><span class="sr-only">{_('Date')}</span>
{else} {else}
<span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span><span class="sr-only">{_('Classic')}</span> <span class="glyphicon glyphicon-list-alt" aria-hidden="true" title="{_('Classic')}"></span><span class="sr-only">{_('Classic')}</span>
{/if} {/if}
</td> </td>
<td>{$poll->title|html}</td>
<td>{$poll->admin_name|html}</td> <td>{$poll->admin_name|html}</td>
<td>{$poll->admin_mail|html}</td> <td>{$poll->admin_mail|html}</td>
@ -54,6 +53,7 @@
<td><span class="text-danger">{strtotime($poll->end_date)|date_format:'d/m/Y'}</span></td> <td><span class="text-danger">{strtotime($poll->end_date)|date_format:'d/m/Y'}</span></td>
{/if} {/if}
<td>TODO</td> <td>TODO</td>
<td>{$poll->id|html}</td>
<td><a href="{$poll->id|poll_url|html}" class="btn btn-link" title="{_('See the poll')}"><span class="glyphicon glyphicon-eye-open"></span><span class="sr-only">{_('See the poll')}</span></a></td> <td><a href="{$poll->id|poll_url|html}" class="btn btn-link" title="{_('See the poll')}"><span class="glyphicon glyphicon-eye-open"></span><span class="sr-only">{_('See the poll')}</span></a></td>
<td><a href="{$poll->admin_id|poll_url:true|html}" class="btn btn-link" title="{_('Change the poll')}"><span class="glyphicon glyphicon-pencil"></span><span class="sr-only">{_('Change the poll')}</span></a></td> <td><a href="{$poll->admin_id|poll_url:true|html}" class="btn btn-link" title="{_('Change the poll')}"><span class="glyphicon glyphicon-pencil"></span><span class="sr-only">{_('Change the poll')}</span></a></td>
<td><button type="submit" name="delete_poll" value="{$poll->id|html}" class="btn btn-link" title="{_('Remove the poll')}"><span class="glyphicon glyphicon-trash text-danger"></span><span class="sr-only">{_('Remove the poll')}</span></td> <td><button type="submit" name="delete_poll" value="{$poll->id|html}" class="btn btn-link" title="{_('Remove the poll')}"><span class="glyphicon glyphicon-trash text-danger"></span><span class="sr-only">{_('Remove the poll')}</span></td>