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>
{foreach $passwordgroups as $passwordgroup=>$permissions}
{if $permissions@first}
<ul>
<table>
<tbody>
{/if}
<li>
<span class="pwgname" id="pwgname_{$passwordgroup}">{$passwordgroup}</span>{if ($permissions == 'rw') || ($isadmin)} [Add password]{/if}
</li>
<tr>
<td>
<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 $isadmin}
<li id="addnewgroup">Create new group</li>
{/if}
</ul>
</tbody>
</table>
{if $isadmin}
<span id="addnewgroup">Create new group</li>
{/if}
{/if}
{/foreach}
</div>