summaryrefslogtreecommitdiff
path: root/templates/admin_permissions.tpl
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-06-17 17:14:54 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-06-17 17:14:54 +0000
commit9af44666ba748030338ba320b3fca3183bb66daa (patch)
tree803a000d6fb71f93ca346e7b361bbf5412bbf43e /templates/admin_permissions.tpl
parent7ebf474d54b70acee49aa4538db3ed01e430e48a (diff)
downloadusers-9af44666ba748030338ba320b3fca3183bb66daa.tar.gz
users-9af44666ba748030338ba320b3fca3183bb66daa.tar.bz2
users-9af44666ba748030338ba320b3fca3183bb66daa.zip
massive rework of group permission assignment UI. this interface is a 'everything on one page' type solution. it also replaces the unassigned permissions page which was really just a temporary solution
Diffstat (limited to 'templates/admin_permissions.tpl')
-rw-r--r--templates/admin_permissions.tpl58
1 files changed, 58 insertions, 0 deletions
diff --git a/templates/admin_permissions.tpl b/templates/admin_permissions.tpl
new file mode 100644
index 0000000..704ca50
--- /dev/null
+++ b/templates/admin_permissions.tpl
@@ -0,0 +1,58 @@
+{strip}
+<div class="admin users">
+ <div class="header">
+ <h1>{tr}Assign Group Permissions{/tr}</h1>
+ </div>
+
+ <div class="body">
+ {formfeedback hash=$feedback}
+
+ {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)}
+ &nbsp;&bull; {smartlink ititle=$gBitSystem->mPackages.$packageKey.name|default:$packageKey package=$packageKey}
+ {/if}
+ {/foreach}
+
+ <table class="data">
+ <caption>{tr}Available Permissions{/tr}</caption>
+ <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}
+ </tr>
+ {foreach from=$allPerms item=perm key=p}
+ <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>
+
+ <div class="submit">
+ <input type="submit" name="save" value="{tr}Apply Changes{/tr}" />
+ </div>
+ {/form}
+
+ <dl>
+ {foreach from=$allGroups item=group}
+ <dt>{$group.group_id}</dt>
+ <dd>{$group.group_name}: {$group.group_desc}</dd>
+ {/foreach}
+ </dl>
+
+ </div><!-- end .body -->
+</div><!-- end .users -->
+{/strip}