X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Ftimesheets.tpl;h=af65d14b5772263aa93ba3abaddbfc98095d8673;hb=88bd95ec82e6b715f84b6bd09c04aebbdb4b5e4d;hp=2b7990a88d1a843e52c526aaf9085b496cb11d46;hpb=710003ecf2838c254c075fd9898034e267915e46;p=timetracker.git
diff --git a/WEB-INF/templates/timesheets.tpl b/WEB-INF/templates/timesheets.tpl
index 2b7990a8..af65d14b 100644
--- a/WEB-INF/templates/timesheets.tpl
+++ b/WEB-INF/templates/timesheets.tpl
@@ -2,46 +2,104 @@
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 $show_client}
-
- {if $user->isPluginEnabled('ps')}
-
- {/if}
+{/if}
+{if $not_client}
+
+
+{/if}
- {if !$user->isClient()}
-
- {/if}
+{if $can_edit}
+
+{/if}
- {foreach $invoices as $invoice}
+{foreach $active_timesheets as $timesheet}
- {$invoice.name|escape} |
- {$invoice.client_name|escape} |
- {$invoice.date} |
- {if $user->isPluginEnabled('ps')}
- {if $invoice.paid}{$i18n.label.yes}{else}{$i18n.label.no}{/if} |
+ {$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 !$user->isClient()}
- {$i18n.label.delete} |
+ {$i18n.label.view} |
+ {if $can_edit}
+ {$i18n.label.edit} |
{/if}
- {/foreach}
+{/foreach}
+
+{if $not_client}
+
+{/if}
- {if !$user->isClient()}
+{if $inactive_timesheets}
+
+
+
+
+
+ {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}
|
+{$forms.timesheetsForm.close}