X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Ftime_edit.tpl;h=66778e17d40d405f0646cf3ca492b0637fe3f59e;hb=45ca7d2258832cb0d2465eb16dd646d925458106;hp=ba8974fe1d749c75de0ba8a1c698469984b53275;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git diff --git a/WEB-INF/templates/time_edit.tpl b/WEB-INF/templates/time_edit.tpl index ba8974fe..66778e17 100644 --- a/WEB-INF/templates/time_edit.tpl +++ b/WEB-INF/templates/time_edit.tpl @@ -1,201 +1,18 @@ - +{/if} {$forms.timeRecordForm.open} @@ -203,23 +20,29 @@ function setNow(formField) {
-
+ -{if in_array('cl', explode(',', $user->plugins))} +{if $user->isPluginEnabled('cl')} - + {/if} -{if in_array('iv', explode(',', $user->plugins))} +{if $user->isPluginEnabled('iv')} {/if} +{if ($user->can('manage_invoices') && $user->isPluginEnabled('ps'))} + + + + +{/if} {if ($custom_fields && $custom_fields->fields[0])} - + {/if} {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} @@ -230,7 +53,7 @@ function setNow(formField) { {/if} {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)} - + {/if} @@ -247,13 +70,19 @@ function setNow(formField) { {if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))} - + {/if} +{if $template_dropdown} + + + + +{/if} @@ -272,4 +101,4 @@ function setNow(formField) {
{$i18n.label.client}{if in_array('cm', explode(',', $user->plugins))} (*){/if}:{$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/if}: {$forms.timeRecordForm.client.control}
 
 
{$custom_fields->fields[0]['label']|escape:'html'}{if $custom_fields->fields[0]['required']} (*){/if}:{$forms.timeRecordForm.cf_1.control}{$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}:{$forms.timeRecordForm.cf_1.control}
{$i18n.label.task} (*):{$i18n.label.task}{if $user->task_required} (*){/if}: {$forms.timeRecordForm.task.control}
{$i18n.label.duration}:{$forms.timeRecordForm.duration.control} {$i18n.form.time.duration_format}{$forms.timeRecordForm.duration.control} {if $user->decimal_mark == ','}{str_replace('.', ',', $i18n.form.time.duration_format)}{else}{$i18n.form.time.duration_format}{/if}
{$i18n.label.date}: {$forms.timeRecordForm.date.control}
{$i18n.label.template}:{$forms.timeRecordForm.template.control}
{$i18n.label.note}: {$forms.timeRecordForm.note.control}
-{$forms.timeRecordForm.close} \ No newline at end of file +{$forms.timeRecordForm.close}