source: branches/2.0/admin/template/goto/group_list.tpl @ 4529

Last change on this file since 4529 was 4529, checked in by plg, 14 years ago

bug 1328: implements check_pwg_token at group management level.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1{* $Id: group_list.tpl 4529 2009-12-19 20:22:13Z plg $ *}
2<div class="titrePage">
3  <h2>{'title_groups'|@translate}</h2>
4</div>
5
6<form method="post" name="add_user" action="{$F_ADD_ACTION}" class="properties">
7  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}" />
8  <fieldset>
9    <legend>{'Add group'|@translate}</legend>
10
11    <span class="property">
12      <label for="groupname">{'Group name'|@translate}</label>
13    </span>
14    <input type="text" id="groupname" name="groupname" maxlength="50" size="20" />
15
16    <p>
17      <input class="submit" type="submit" name="submit_add" value="{'Add'|@translate}" {$TAG_INPUT_ENABLED}/>
18    </p>
19  </fieldset>
20</form>
21
22<table class="table2">
23  <tr class="throw">
24    <th>{'Group name'|@translate}</th>
25    <th>{'Members'|@translate}</th>
26    <th>{'Actions'|@translate}</th>
27  </tr>
28  {if not empty($groups)}
29  {foreach from=$groups item=group name=group_loop}
30  <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}">
31    <td>{$group.NAME}<i><small>{$group.IS_DEFAULT}</small></i></td>
32    <td><a href="{$group.U_MEMBERS}">{$group.MEMBERS}</a></td>
33    <td style="text-align:center;">
34      <a href="{$group.U_PERM}">
35        <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/permissions.png" class="button" style="border:none" id="btn_permissions" alt="{'permissions'|@translate}" title="{'permissions'|@translate}" /></a>
36      <a href="{$group.U_DELETE}" onclick="return confirm( document.getElementById('btn_delete').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');">
37        <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" class="button" style="border:none" id="btn_delete" alt="{'delete'|@translate}" title="{'delete'|@translate}" {$TAG_INPUT_ENABLED}/></a>
38      <a href="{$group.U_ISDEFAULT}" onclick="return confirm( document.getElementById('btn_toggle_is_default_group').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');">
39        <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/toggle_is_default_group.png" class="button" style="border:none" id="btn_toggle_is_default_group" alt="{'toggle_is_default_group'|@translate}" title="{'toggle_is_default_group'|@translate}" {$TAG_INPUT_ENABLED}/></a>
40    </td>
41  </tr>
42  {/foreach}
43  {/if}
44</table>
Note: See TracBrowser for help on using the repository browser.