Made password group listing a table instead of a list

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely Polonkai (W00d5t0ck) 2012-05-17 11:09:28 +02:00
parent e79e7b2191
commit f72cec984e

View File

@ -41,16 +41,29 @@
<h2>Accessible password groups</h2> <h2>Accessible password groups</h2>
{foreach $passwordgroups as $passwordgroup=>$permissions} {foreach $passwordgroups as $passwordgroup=>$permissions}
{if $permissions@first} {if $permissions@first}
<ul> <table>
<tbody>
{/if} {/if}
<li> <tr>
<span class="pwgname" id="pwgname_{$passwordgroup}">{$passwordgroup}</span>{if ($permissions == 'rw') || ($isadmin)} [Add password]{/if} <td>
</li> <span class="pwgname" id="pwgname_{$passwordgroup}">{$passwordgroup}</span>
</td>
<td>
{if ($permissions == 'rw') || ($isadmin)}[Add password]{/if}
</td>
<td>
{if ($permissions == 'rw') || ($isadmin)}[Group settings]{/if}
</td>
<td>
{if ($isadmin)}[Delete group]{/if}
</td>
</tr>
{if $permissions@last} {if $permissions@last}
</tbody>
</table>
{if $isadmin} {if $isadmin}
<li id="addnewgroup">Create new group</li> <span id="addnewgroup">Create new group</li>
{/if} {/if}
</ul>
{/if} {/if}
{/foreach} {/foreach}
</div> </div>