[2531] | 1 | <div class="titrePage"> |
---|
[5021] | 2 | <h2>{'Group management'|@translate}</h2> |
---|
[2531] | 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 | <span class="property"> |
---|
| 9 | <label for="groupname">{'Group name'|@translate}</label> |
---|
| 10 | </span> |
---|
[3185] | 11 | <input type="text" id="groupname" name="groupname" maxlength="50" size="20"> |
---|
[2531] | 12 | |
---|
| 13 | <p> |
---|
[8128] | 14 | <input class="submit" type="submit" name="submit_add" value="{'Add'|@translate}"> |
---|
[5931] | 15 | <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> |
---|
[2531] | 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}"> |
---|
[12482] | 33 | <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/permissions.png" style="border:none" alt="{'Permissions'|@translate}" title="{'Permissions'|@translate}"></a> |
---|
[8076] | 34 | <a href="{$group.U_DELETE}" onclick="return confirm('{'delete'|@translate|@escape:'javascript'}' |
---|
| 35 | + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');"> |
---|
[12482] | 36 | <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" style="border:none" alt="{'Delete'|@translate}" title="{'Delete'|@translate}"></a> |
---|
[8076] | 37 | <a href="{$group.U_ISDEFAULT}" onclick="return confirm('{'Toggle \'default group\' property'|@translate|@escape:'javascript'}' |
---|
| 38 | +'\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');"> |
---|
[12482] | 39 | <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/toggle_is_default_group.png" style="border:none" alt="{'Toggle \'default group\' property'|@translate}" title="{'Toggle \'default group\' property'|@translate}"></a> |
---|
[2531] | 40 | </td> |
---|
| 41 | </tr> |
---|
| 42 | {/foreach} |
---|
| 43 | {/if} |
---|
| 44 | </table> |
---|