source: extensions/community/admin.tpl @ 6621

Last change on this file since 6621 was 3673, checked in by plg, 15 years ago

first import for the Community plugin : basic feature to declare a list of
non admin users able to add photos with web API.

File size: 1.6 KB
Line 
1<div class="titrePage">
2  <h2>{'Community'|@translate}</h2>
3</div>
4
5<form method="post" name="add_permission" action="{$F_ADD_ACTION}" class="properties">
6  <fieldset>
7    <legend>{'Add permissions'|@translate}</legend>
8
9    <table>
10      <tr>
11        <td>{'User'|@translate}</td>
12        <td>
13          {html_options name="user_options" options=$user_options}
14        </td>
15      </tr>
16
17      <tr>
18        <td>{'Permission level'|@translate}</td>
19        <td>
20          {html_options name="permission_level_options" options=$permission_level_options}
21        </td>
22      </tr>
23    </table>
24   
25    <p>
26      <input class="submit" type="submit" name="submit_add" value="{'Add'|@translate}" {$TAG_INPUT_ENABLED}/>
27    </p>
28  </fieldset>
29</form>
30
31<table class="table2">
32  <tr class="throw">
33    <th>{'User'|@translate}</th>
34    <th>{'Permission level'|@translate}</th>
35    <th>{'Actions'|@translate}</th>
36  </tr>
37  {if not empty($users)}
38  {foreach from=$users item=user name=user_loop}
39  <tr class="{if $smarty.foreach.user_loop.index is odd}row1{else}row2{/if}">
40    <td>{$user.NAME}</td>
41    <td>{$user.PERMISSION_LEVEL}</td>
42    <td style="text-align:center;">
43      <a href="{$user.U_DELETE}" onclick="return confirm( document.getElementById('btn_delete').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');">
44        <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}/>
45      </a>
46    </td>
47  </tr>
48  {/foreach}
49  {/if}
50</table>
Note: See TracBrowser for help on using the repository browser.