X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Ftimesheets.tpl;h=91c626df0def9c99e4cbecbcddf1c7b8265828a0;hb=024e938728d2b436f1f048531d8fd00a246920c6;hp=796f2720796ab125ac5cc898de42355d793c709f;hpb=b33cf8ebaf54882a2238b660ba07936301077695;p=timetracker.git
diff --git a/WEB-INF/templates/timesheets.tpl b/WEB-INF/templates/timesheets.tpl
index 796f2720..91c626df 100644
--- a/WEB-INF/templates/timesheets.tpl
+++ b/WEB-INF/templates/timesheets.tpl
@@ -2,43 +2,86 @@
function chLocation(newLocation) { document.location = newLocation; }
+{$forms.timesheetsForm.open}
+{if $user_dropdown}
+ {$i18n.label.user}: {$forms.timesheetsForm.user.control} |
+{/if}
-{if $user->can('manage_invoices') || $user->can('view_own_invoices')}
- {$i18n.form.timesheets.hint}
|
+{if $inactive_timesheets}
+
+{/if}
- {if $user->isPluginEnabled('cl')}
+{if $show_client}
- {/if}
-
-
+{/if}
+
+
+
- {foreach $timesheets as $timesheet}
+{foreach $active_timesheets as $timesheet}
{$timesheet.name|escape} |
+ {if $show_client}
{$timesheet.client_name|escape} |
- {$invoice.date} |
- {if $user->isPluginEnabled('ps')}
- {if $invoice.paid}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
{/if}
- {$i18n.label.view} |
- {if !$user->isClient()}
- {$i18n.label.delete} |
+ {if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
+ {if $timesheet.approve_status == null}
+ |
+ {else}
+ {if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
{/if}
+ {$i18n.label.view} |
+ {$i18n.label.edit} |
- {/foreach}
+{/foreach}
- {if !$user->isClient()}
+
+{if $inactive_timesheets}
+
+
+
+
+
+ {if $show_client}
+
{/if}
+
+
+
+
+
+ {foreach $inactive_timesheets as $timesheet}
+
+ {$timesheet.name|escape} |
+ {if $show_client}
+ {$timesheet.client_name|escape} |
+ {/if}
+ {if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
+ {if $timesheet.approve_status == null}
+ |
+ {else}
+ {if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
+ {/if}
+ {$i18n.label.view} |
+ {$i18n.label.edit} |
+
+ {/foreach}
+
+
+
{/if}
|
+{$forms.timesheetsForm.close}