X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Fusers.tpl;h=008413391a0e8fbb8079987ea1fe467de7c0776e;hb=b4be5795ddbcef63b4b6fffb200c3dfc3ffcb530;hp=f343f9cf177082b2a2cc57ceb6c8a723f4bf5294;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git
diff --git a/WEB-INF/templates/users.tpl b/WEB-INF/templates/users.tpl
index f343f9cf..00841339 100644
--- a/WEB-INF/templates/users.tpl
+++ b/WEB-INF/templates/users.tpl
@@ -5,50 +5,45 @@
-{if $user->canManageTeam()}
+{if $user->can('manage_users')}
{if $inactive_users}
{/if}
-
-
-
+
+
+
{if $active_users}
{foreach $active_users as $u}
-
- {$u.name|escape:'html'} |
- {$u.login|escape:'html'} |
- {if $smarty.const.ROLE_MANAGER == $u.role}
- {$i18n.form.users.manager} |
- {elseif $smarty.const.ROLE_COMANAGER == $u.role}
- {$i18n.form.users.comanager} |
- {elseif $smarty.const.ROLE_CLIENT == $u.role}
- {$i18n.label.client} |
- {elseif $smarty.const.ROLE_USER == $u.role}
- {$i18n.label.user} |
- {/if}
- {if $user->isManager()}
-
+
+
+ {if $user->uncompleted_indicators}
+
+ {/if}
+ {$u.name|escape}
+ |
+ {$u.login|escape} |
+ {$u.role_name|escape} |
+ {if $u.rank < $user->rank || ($u.rank == $user->rank && $u.id == $user->id)}
{$i18n.label.edit} |
- {if $smarty.const.ROLE_MANAGER != $u.role || $can_delete_manager}{$i18n.label.delete}{/if} |
+ {if $u.id != $user->id}{$i18n.label.delete} | {else} | {/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}
{/if}
-
+
@@ -57,43 +52,33 @@
-
-
-
+
+
+
{foreach $inactive_users as $u}
-
- {$u.name|escape:'html'} |
- {$u.login|escape:'html'} |
- {if $smarty.const.ROLE_MANAGER == $u.role}
- {$i18n.form.users.manager} |
- {elseif $smarty.const.ROLE_COMANAGER == $u.role}
- {$i18n.form.users.comanager} |
- {elseif $smarty.const.ROLE_CLIENT == $u.role}
- {$i18n.label.client} |
- {elseif $smarty.const.ROLE_USER == $u.role}
- {$i18n.label.user} |
- {/if}
- {if $user->isManager()}
-
+
+ {$u.name|escape} |
+ {$u.login|escape} |
+ {$u.role_name|escape} |
+ {if $u.rank < $user->rank}
{$i18n.label.edit} |
- {if $smarty.const.ROLE_MANAGER != $u.role || $can_delete_manager}{$i18n.label.delete}{/if} |
+ {$i18n.label.delete} |
{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}
-
+
@@ -106,22 +91,14 @@
|
{foreach $active_users as $u}
-
- {$u.name|escape:'html'} |
- {$u.login|escape:'html'} |
- {if $smarty.const.ROLE_MANAGER == $u.role}
- {$i18n.form.users.manager} |
- {elseif $smarty.const.ROLE_COMANAGER == $u.role}
- {$i18n.form.users.comanager} |
- {elseif $smarty.const.ROLE_CLIENT == $u.role}
- {$i18n.label.client} |
- {elseif $smarty.const.ROLE_USER == $u.role}
- {$i18n.label.user} |
- {/if}
+
+ {$u.name|escape} |
+ {$u.login|escape} |
+ {$u.role_name|escape} |
{/foreach}
{/if}
-
\ No newline at end of file
+