X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Fmobile%2Fusers.tpl;h=6ff3269a9dab366ae86f93896ff9b28ce4a3f899;hb=9e7fa54992c2053eaae351bf8d28160bfbedfd88;hp=aab86d82fd1ef902e8b73150c6e6ea7dafd024e3;hpb=ee49ee74b2a7d3c6daaa2d4bc6397b0c89e3099b;p=timetracker.git
diff --git a/WEB-INF/templates/mobile/users.tpl b/WEB-INF/templates/mobile/users.tpl
index aab86d82..6ff3269a 100644
--- a/WEB-INF/templates/mobile/users.tpl
+++ b/WEB-INF/templates/mobile/users.tpl
@@ -14,13 +14,25 @@
-
{if $active_users}
{foreach $active_users as $u}
- {$u.name|escape:'html'} |
- {$u.login|escape:'html'} |
+
+ {if $smarty.const.UNCOMPLETED_INDICATORS == $user->uncompleted_indicators}
+
+ {/if}
+ {if $user->isManager()}
+ {$u.name|escape}
+ {else}
+ {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}
+ {$u.name|escape}
+ {else}
+ {$u.name|escape}
+ {/if}
+ {/if}
+ |
+ {$u.login|escape} |
{if $smarty.const.ROLE_MANAGER == $u.role}
{$i18n.form.users.manager} |
{elseif $smarty.const.ROLE_COMANAGER == $u.role}
@@ -29,13 +41,6 @@
{$i18n.label.client} |
{elseif $smarty.const.ROLE_USER == $u.role}
{$i18n.label.user} |
- {/if}
- {if $user->isManager()}
-
- {$i18n.label.edit} |
- {else}
-
- {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.edit}{/if} |
{/if}
{/foreach}
@@ -58,12 +63,17 @@
-
{foreach $inactive_users as $u}
- {$u.name|escape:'html'} |
- {$u.login|escape:'html'} |
+
+ {if $user->isManager()}
+ {$u.name|escape}
+ {else}
+ {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$u.name|escape}{/if}
+ {/if}
+ |
+ {$u.login|escape} |
{if $smarty.const.ROLE_MANAGER == $u.role}
{$i18n.form.users.manager} |
{elseif $smarty.const.ROLE_COMANAGER == $u.role}
@@ -76,11 +86,9 @@
{if $user->isManager()}
{$i18n.label.edit} |
- {if $smarty.const.ROLE_MANAGER != $u.role || $can_delete_manager}{$i18n.label.delete}{/if} |
{else}
{if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.edit}{/if} |
- {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.delete}{/if} |
{/if}
{/foreach}
@@ -104,8 +112,8 @@
{foreach $active_users as $u}
- {$u.name|escape:'html'} |
- {$u.login|escape:'html'} |
+ {$u.name|escape} |
+ {$u.login|escape} |
{if $smarty.const.ROLE_MANAGER == $u.role}
{$i18n.form.users.manager} |
{elseif $smarty.const.ROLE_COMANAGER == $u.role}