diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-07-06 14:34:02 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-07-06 14:34:02 +0000 |
| commit | 02e71fb00cb7180c0fc6bb112632f384382036a0 (patch) | |
| tree | 259c8574037d703f6496a7d49787b3d2d23d9c16 /templates/admin_permissions.tpl | |
| parent | 6de5748848eb8556f124a303d633fbc32772d21f (diff) | |
| download | users-02e71fb00cb7180c0fc6bb112632f384382036a0.tar.gz users-02e71fb00cb7180c0fc6bb112632f384382036a0.tar.bz2 users-02e71fb00cb7180c0fc6bb112632f384382036a0.zip | |
improve UI a bit
Diffstat (limited to 'templates/admin_permissions.tpl')
| -rw-r--r-- | templates/admin_permissions.tpl | 58 |
1 files changed, 32 insertions, 26 deletions
diff --git a/templates/admin_permissions.tpl b/templates/admin_permissions.tpl index 704ca50..41846ea 100644 --- a/templates/admin_permissions.tpl +++ b/templates/admin_permissions.tpl @@ -7,52 +7,58 @@ <div class="body"> {formfeedback hash=$feedback} - {form} - <input type="hidden" name="package" value="{$smarty.request.package}" /> + {form} + <input type="hidden" name="package" value="{$smarty.request.package}" /> - {smartlink ititle=All package=$packageKey} - {foreach from=$permPackages key=i item=packageKey} - {if $gBitSystem->isPackageActive($packageKey)} - • {smartlink ititle=$gBitSystem->mPackages.$packageKey.name|default:$packageKey package=$packageKey} - {/if} - {/foreach} + {smartlink ititle=All package=$packageKey} + {foreach from=$permPackages key=i item=packageKey} + {if $gBitSystem->isPackageActive($packageKey)} + • {smartlink ititle=$gBitSystem->mPackages.$packageKey.name|default:$packageKey package=$packageKey} + {/if} + {/foreach} - <table class="data"> - <caption>{tr}Available Permissions{/tr}</caption> + <table class="data"> + <caption>{tr}Available Permissions{/tr}</caption> + {capture assign=th} <tr> <th style="width:1%"></th> <th>{tr}Permission{/tr}</th> <th>{tr}Package{/tr}</th> - {foreach from=$allGroups item=group} - <th><abbr title="{$group.group_name}">{$group.group_id}</abbr></th> + {foreach from=$allGroups item=group name=groups} + <th><abbr title="{$group.group_name}">{if $smarty.foreach.groups.total > 5}{$group.group_id}{else}{$group.group_name}{/if}</abbr></th> {/foreach} </tr> - {foreach from=$allPerms item=perm key=p} + {/capture} + {$th} + {foreach from=$allPerms item=perm key=p name=perms} + {* insert headers every 20 lines *} + {if ($smarty.foreach.perms.iteration % 20) eq 0 and ($smarty.foreach.perms.total - $smarty.foreach.perms.iteration) gt 15}{$th}{/if} <tr class="{cycle values="odd,even"}{if $unassignedPerms.$p} warning{/if}"> <td>{if $unassignedPerms.$p}{biticon iname=dialog-warning iexplian="Unassigned Permission"}{/if}</td> <td><span title="{$perm.perm_desc}">{$p}</span></td> <td>{$perm.package}</td> - {foreach from=$allGroups item=group} - <td style="text-align:center;"> - <input type="checkbox" value="{$p}" name="perms[{$group.group_id}][{$p}]" title="{$group.group_name}" {if $group.perms.$p}checked="checked"{/if}/> - </td> - {/foreach} - </tr> - {/foreach} - </table> + {foreach from=$allGroups item=group} + <td style="text-align:center;"> + <input type="checkbox" value="{$p}" name="perms[{$group.group_id}][{$p}]" title="{$group.group_name}" {if $group.perms.$p}checked="checked"{/if}/> + </td> + {/foreach} + </tr> + {/foreach} + </table> - <div class="submit"> - <input type="submit" name="save" value="{tr}Apply Changes{/tr}" /> - </div> - {/form} + <div class="submit"> + <input type="submit" name="save" value="{tr}Apply Changes{/tr}" /> + </div> + {/form} + {if $smarty.foreach.groups.total > 5} <dl> {foreach from=$allGroups item=group} <dt>{$group.group_id}</dt> <dd>{$group.group_name}: {$group.group_desc}</dd> {/foreach} </dl> - + {/if} </div><!-- end .body --> </div><!-- end .users --> {/strip} |
