source: trunk/admin/template/goto/group_list.tpl @ 5021

Last change on this file since 5021 was 5021, checked in by nikrou, 14 years ago

Feature 1451 : localization with gettext
Use php-gettext (developpement version rev43, because of php5.3) as fallback
Use native language (english) instead of key for translation
Keep directory en_UK for english customization
Need some refactoring for plurals

Todo : managing plugins in the same way

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