X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Ftimesheets.tpl;h=f9b89d79272f62fe7b31953273c35b1128750073;hb=c14bc01ae221ece2c5b78c9c39b4902cb25154d6;hp=dc5c8155799cf1a4e40a9a7cf1ace4187c8424e7;hpb=3ad837214ca361fdaac5363d9e702d3d40d04b17;p=timetracker.git
diff --git a/WEB-INF/templates/timesheets.tpl b/WEB-INF/templates/timesheets.tpl
index dc5c8155..f9b89d79 100644
--- a/WEB-INF/templates/timesheets.tpl
+++ b/WEB-INF/templates/timesheets.tpl
@@ -4,7 +4,7 @@
{$forms.timesheetsForm.open}
-{if $show_hint}
+{if $not_client}
{$i18n.form.timesheets.hint}
|
{/if}
{if $user_dropdown}
@@ -13,47 +13,49 @@
- {if $inactive_timesheets}
+{if $inactive_timesheets}
- {/if}
+{/if}
- {if $show_client}
+{if $show_client}
- {/if}
- {if $show_submit_status}
+{/if}
+{if $not_client}
- {/if}
- {if $show_approval_status}
- {/if}
+{/if}
+{if $can_edit}
+{/if}
- {foreach $active_timesheets as $timesheet}
+{foreach $active_timesheets as $timesheet}
{$timesheet.name|escape} |
{if $show_client}
{$timesheet.client_name|escape} |
{/if}
- {if $show_submit_status}
+ {if $not_client}
{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
- {/if}
- {if $show_approval_status}
+ {if $timesheet.approval_status == null}
+ |
+ {else}
{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
+ {/if}
{/if}
{$i18n.label.view} |
- {if !$user->isClient()}
+ {if $can_edit}
{$i18n.label.edit} |
{/if}
- {/foreach}
+{/foreach}
- {if !$user->isClient()}
+{if $not_client}
- {/if}
+{/if}
{if $inactive_timesheets}
@@ -64,35 +66,37 @@
{if $show_client}
{/if}
- {if $show_submit_status}
+ {if $not_client}
- {/if}
- {if $show_approval_status}
{/if}
+ {if $can_edit}
+ {/if}
- {foreach $inactive_timesheets as $timesheet}
+ {foreach $inactive_timesheets as $timesheet}
{$timesheet.name|escape} |
- {if $show_client}
+ {if $show_client}
{$timesheet.client_name|escape} |
- {/if}
- {if $show_submit_status}
+ {/if}
+ {if $not_client}
{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
- {/if}
- {if $show_approval_status}
+ {if $timesheet.approval_status == null}
+ |
+ {else}
{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
- {/if}
+ {/if}
+ {/if}
{$i18n.label.view} |
- {if !$user->isClient()}
+ {if $can_edit}
{$i18n.label.edit} |
- {/if}
+ {/if}
- {/foreach}
+ {/foreach}
- {if !$user->isClient()}
+ {if $not_client}
|