X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Fusers.tpl;h=956ee55ae455a3a8ef316a4e5f385f875a6fb13c;hb=3e589ad628d6ccb685e769e4d740c7065c9381ae;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..956ee55a 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}
@@ -103,9 +111,9 @@
{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}