]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/templates/time.tpl
As suggested in PR#33, allowed entry of decimal values with a comma for teams with...
[timetracker.git] / WEB-INF / templates / time.tpl
index 8328ab41d7fd9c2b74e2cf91dfb4c49863d6196e..25fc81c186e0f88f96c874655cdad18e587ecbe7 100644 (file)
@@ -59,7 +59,7 @@
 {if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
         <tr>
           <td align="right">{$i18n.label.duration}:</td>
-          <td>{$forms.timeRecordForm.duration.control}&nbsp;{$i18n.form.time.duration_format}</td>
+          <td>{$forms.timeRecordForm.duration.control}&nbsp;{if $user->decimal_mark == ','}{str_replace('.', ',', $i18n.form.time.duration_format)}{else}{$i18n.form.time.duration_format}{/if}</td>
         </tr>
 {/if}
       </table>