]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/templates/time.tpl
Refactoring, moving plugin config options into config field.
[timetracker.git] / WEB-INF / templates / time.tpl
index dd583ee3136f855cbc2d5309b021807e27875beb..e3266076ba3bc7227c869396e52427eaf386c1de 100644 (file)
@@ -8,7 +8,7 @@
 
 {$forms.timeRecordForm.open}
 <table cellspacing="4" cellpadding="0" border="0">
-{if $user->isPluginEnabled('wv')}
+{if $show_navigation}
   <tr>
     <td align="center" colspan=2">
       <a href="time.php?date={$selected_date->toString()}">{$i18n.label.day_view}</a>&nbsp;/&nbsp;<a href="week.php?date={$selected_date->toString()}">{$i18n.label.week_view}</a>
@@ -26,7 +26,7 @@
 {/if}
 {if $show_client}
         <tr>
-          <td align="right">{$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/if}:</td>
+          <td align="right">{$i18n.label.client}{if $user->isOptionEnabled('client_required')} (*){/if}:</td>
           <td>{$forms.timeRecordForm.client.control}</td>
         </tr>
 {/if}
@@ -71,9 +71,9 @@
           <td>{$forms.timeRecordForm.duration.control}&nbsp;{if $user->getDecimalMark() == ','}{str_replace('.', ',', $i18n.form.time.duration_format)}{else}{$i18n.form.time.duration_format}{/if}</td>
         </tr>
 {/if}
-{if $show_files && false}
+{if $show_files}
         <tr>
-          <td align="right">{$i18n.label.files}:</td>
+          <td align="right">{$i18n.label.file}:</td>
           <td>{$forms.timeRecordForm.newfile.control}</td>
         </tr>
 {/if}