X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Ftimesheets.tpl;h=a5e893e59a4994c95323c833827cdd999aa33b25;hb=67e827dacf08d8a55dff9118c82dd964f5da12c1;hp=df4782b64954ad735b4886c821eae52036664d39;hpb=c6aa77a9e6299cf3103f97274e573cc9938c1215;p=timetracker.git diff --git a/WEB-INF/templates/timesheets.tpl b/WEB-INF/templates/timesheets.tpl index df4782b6..a5e893e5 100644 --- a/WEB-INF/templates/timesheets.tpl +++ b/WEB-INF/templates/timesheets.tpl @@ -20,27 +20,33 @@ {/if} {$i18n.label.submitted} {$i18n.label.approved} - {$i18n.label.view} -{if $can_edit} - {$i18n.label.edit} +{if $show_files} + {/if} + + {foreach $active_timesheets as $timesheet} - {$timesheet.name|escape} + {$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.approval_status == null} + {if $timesheet.approve_status == null} {else} - {if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} + {if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} {/if} - {$i18n.label.view} - {if $can_edit} - {$i18n.label.edit} + {if $show_files} + {if $timesheet.has_files} + {$i18n.label.files} + {else} + {$i18n.label.files} + {/if} {/if} + {$i18n.label.edit} + {$i18n.label.delete} {/foreach} @@ -60,27 +66,33 @@ {/if} {$i18n.label.submitted} {$i18n.label.approved} - {$i18n.label.view} - {if $can_edit} - {$i18n.label.edit} + {if $show_files} + {/if} + + {foreach $inactive_timesheets as $timesheet} - {$timesheet.name|escape} + {$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.approval_status == null} + {if $timesheet.approve_status == null} {else} - {if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} + {if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if} {/if} - {$i18n.label.view} - {if $can_edit} - {$i18n.label.edit} + {if $show_files} + {if $timesheet.has_files} + {$i18n.label.files} + {else} + {$i18n.label.files} + {/if} {/if} + {$i18n.label.edit} + {$i18n.label.delete} {/foreach}