aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/admin/group_list.tpl
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-11 01:51:47 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-11 01:51:47 +0000
commit62e55bc595f682da05914cc2949454d58a05e368 (patch)
treee51f710bd79dea4a251caca41134d536d01107b5 /template/yoga/admin/group_list.tpl
parentff19a8f1cd624eae602b64895ce92bdaa7789d69 (diff)
group_list, group_perm and site_manager go smarty
git-svn-id: http://piwigo.org/svn/trunk@2273 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/yoga/admin/group_list.tpl')
-rw-r--r--template/yoga/admin/group_list.tpl45
1 files changed, 23 insertions, 22 deletions
diff --git a/template/yoga/admin/group_list.tpl b/template/yoga/admin/group_list.tpl
index 013058911..274445f4b 100644
--- a/template/yoga/admin/group_list.tpl
+++ b/template/yoga/admin/group_list.tpl
@@ -1,45 +1,46 @@
-<!-- DEV TAG: not smarty migrated -->
-<!-- $Id$ -->
+{* $Id$ *}
<div class="titrePage">
<ul class="categoryActions">
- <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
+ <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li>
</ul>
- <h2>{lang:title_groups}</h2>
+ <h2>{'title_groups'|@translate}</h2>
</div>
-<form method="post" name="add_user" action="{F_ADD_ACTION}" class="properties">
+<form method="post" name="add_user" action="{$F_ADD_ACTION}" class="properties">
<fieldset>
- <legend>{lang:Add group}</legend>
+ <legend>{'Add group'|@translate}</legend>
<span class="property">
- <label for="groupname">{lang:Group name}</label>
+ <label for="groupname">{'Group name'|@translate}</label>
</span>
<input type="text" id="groupname" name="groupname" maxlength="50" size="20" />
<p>
- <input class="submit" type="submit" name="submit_add" value="{lang:Add}" {TAG_INPUT_ENABLED}/>
+ <input class="submit" type="submit" name="submit_add" value="{'Add'|@translate}" {$TAG_INPUT_ENABLED}/>
</p>
</fieldset>
</form>
<table class="table2">
<tr class="throw">
- <th>{lang:Group name}</th>
- <th>{lang:Members}</th>
- <th>{lang:Actions}</th>
+ <th>{'Group name'|@translate}</th>
+ <th>{'Members'|@translate}</th>
+ <th>{'Actions'|@translate}</th>
</tr>
- <!-- BEGIN group -->
- <tr class="{group.CLASS}">
- <td>{group.NAME}<i><small>{group.IS_DEFAULT}</small></i></td>
- <td><a href="{group.U_MEMBERS}">{group.MEMBERS}</a></td>
+ {if not empty($groups)}
+ {foreach from=$groups item=group name=group_loop}
+ <tr class="{if $smarty.foreach.group_loop.index is odd}row1{else}row2{/if}">
+ <td>{$group.NAME}<i><small>{$group.IS_DEFAULT}</small></i></td>
+ <td><a href="{$group.U_MEMBERS}">{$group.MEMBERS}</a></td>
<td style="text-align:center;">
- <a href="{group.U_PERM}">
- <img src="{themeconf:icon_dir}/permissions.png" class="button" style="border:none" id="btn_permissions" alt="{lang:permissions}" title="{lang:permissions}" /></a>
- <a href="{group.U_DELETE}" onclick="return confirm('{lang:Action: }' + document.getElementById('btn_delete').title + '\n\n' + '{lang:Are you sure?}');">
- <img src="{themeconf:icon_dir}/delete.png" class="button" style="border:none" id="btn_delete" alt="{lang:delete}" title="{lang:delete}" {TAG_INPUT_ENABLED}/></a>
- <a href="{group.U_ISDEFAULT}" onclick="return confirm('{lang:Action: }' + document.getElementById('btn_toggle_is_default_group').title + '\n\n' + '{lang:Are you sure?}');">
- <img src="{themeconf:icon_dir}/toggle_is_default_group.png" class="button" style="border:none" id="btn_toggle_is_default_group" alt="{lang:toggle_is_default_group}" title="{lang:toggle_is_default_group}" {TAG_INPUT_ENABLED}/></a>
+ <a href="{$group.U_PERM}">
+ <img src="{$ROOT_URL}{$themeconf.icon_dir}/permissions.png" class="button" style="border:none" id="btn_permissions" alt="{'permissions'|@translate}" title="{'permissions'|@translate}" /></a>
+ <a href="{$group.U_DELETE}" onclick="return confirm( document.getElementById('btn_delete').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');">
+ <img src="{$ROOT_URL}{$themeconf.icon_dir}/delete.png" class="button" style="border:none" id="btn_delete" alt="{'delete'|@translate}" title="{'delete'|@translate}" {$TAG_INPUT_ENABLED}/></a>
+ <a href="{$group.U_ISDEFAULT}" onclick="return confirm( document.getElementById('btn_toggle_is_default_group').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');">
+ <img src="{$ROOT_URL}{$themeconf.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>
</td>
</tr>
- <!-- END group -->
+ {/foreach}
+ {/if}
</table>