summaryrefslogtreecommitdiff
path: root/templates/content_permissions.tpl
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2007-07-15 18:05:33 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2007-07-15 18:05:33 +0000
commita3fa78ae370701cd48c2ee806684176970bdfc01 (patch)
tree9968ec8bd35691f417592143bc4154ce8ecb460f /templates/content_permissions.tpl
parent78a7971f418667eb24d45f5886006fb22542e503 (diff)
downloadliberty-a3fa78ae370701cd48c2ee806684176970bdfc01.tar.gz
liberty-a3fa78ae370701cd48c2ee806684176970bdfc01.tar.bz2
liberty-a3fa78ae370701cd48c2ee806684176970bdfc01.zip
UI update
Diffstat (limited to 'templates/content_permissions.tpl')
-rw-r--r--templates/content_permissions.tpl13
1 files changed, 10 insertions, 3 deletions
diff --git a/templates/content_permissions.tpl b/templates/content_permissions.tpl
index 0600928..3eaa83f 100644
--- a/templates/content_permissions.tpl
+++ b/templates/content_permissions.tpl
@@ -24,14 +24,19 @@
<tr>
<th>{tr}Permission{/tr}</th>
{foreach from=$contentPerms.groups item=group}
- <th><abbr title="{$group.group_name}">{if count($contentPerms.groups) gt 10}{$group.group_name|truncate:4:false}{else}{$group.group_name}{/if}</abbr></th>
+ <th onmouseover="showById('f{$group.group_id}');hideById('a{$group.group_id}')">
+ <abbr id="a{$group.group_id}" title="{$group.group_name}">{if count($contentPerms.groups) gt 10}{$group.group_name|truncate:4:false}{else}{$group.group_name}{/if}</abbr>
+ <span id="f{$group.group_id}" style="display:none">{$group.group_name}</span>
+ </th>
{/foreach}
</tr>
{/capture}
{$th}
{foreach from=$contentPerms.assignable key=perm item=permInfo name=perms}
+ {*
{if ($smarty.foreach.perms.iteration % 10) eq 0 and ($smarty.foreach.perms.total - $smarty.foreach.perms.iteration) gt 5}{$th}{/if}
+ *}
<tr class="{cycle values="odd,even"}">
<td>{$permInfo.perm_desc}<br /><em>({$permInfo.perm_name})</em></td>
{foreach from=$contentPerms.groups key=groupId item=groupInfo}
@@ -47,7 +52,9 @@
{assign var=icon value="list-remove"} {* is_revoked icon *}
{/if}
{/if}
- <td style="text-align:center">{smartlink itra=false ititle="`$contentPerms.groups.$groupId.group_name` :: $perm" ibiticon=icons/$size$icon action=$action content_id=$gContent->mContentId perm=$perm group_id=$groupId}</td>
+ <td style="text-align:center">
+ {smartlink itra=false ititle="`$contentPerms.groups.$groupId.group_name` :: $perm" ibiticon=icons/$size$icon action=$action content_id=$gContent->mContentId perm=$perm group_id=$groupId}
+ </td>
{/foreach}
</tr>
{/foreach}
@@ -57,7 +64,7 @@
<h2>{tr}Legend{/tr}</h2>
<dl>
{foreach from=$contentPerms.groups item=group}
- <dt>{$group.group_name|truncate:4:false}</dt>
+ <dt>{$group.group_id}</dt>
<dd>{$group.group_name}: {$group.group_desc}</dd>
{/foreach}
</dl>