X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Ftimesheets.tpl;h=af65d14b5772263aa93ba3abaddbfc98095d8673;hb=88bd95ec82e6b715f84b6bd09c04aebbdb4b5e4d;hp=8c3acc95ec0dc00e42428e45014fd30631d14b71;hpb=f490a9f5e080c426f54502d1004f8ab444d26469;p=timetracker.git
diff --git a/WEB-INF/templates/timesheets.tpl b/WEB-INF/templates/timesheets.tpl
index 8c3acc95..af65d14b 100644
--- a/WEB-INF/templates/timesheets.tpl
+++ b/WEB-INF/templates/timesheets.tpl
@@ -4,60 +4,101 @@
{$forms.timesheetsForm.open}
- {$i18n.form.timesheets.hint}
|
{if $user_dropdown}
{$i18n.label.user}: {$forms.timesheetsForm.user.control} |
{/if}
- {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} |
- {$i18n.label.delete} |
{/if}
- {/foreach}
+{/foreach}
+
+{if $not_client}
+
+{/if}
+
+{if $inactive_timesheets}
+
- {if !$user->isClient()}
+
+
+
+ {if $show_client}
+
+ {/if}
+ {if $not_client}
+
+
+ {/if}
+
+ {if $can_edit}
+
+ {/if}
+
+ {foreach $inactive_timesheets as $timesheet}
+
+ {$timesheet.name|escape} |
+ {if $show_client}
+ {$timesheet.client_name|escape} |
+ {/if}
+ {if $not_client}
+ {if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
+ {if $timesheet.approval_status == null}
+ |
+ {else}
+ {if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
+ {/if}
+ {/if}
+ {$i18n.label.view} |
+ {if $can_edit}
+ {$i18n.label.edit} |
+ {/if}
+
+ {/foreach}
+
+ {if $not_client}
{/if}
+{/if}
|