projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor export.tpl to use rights checks (#60)
[timetracker.git]
/
WEB-INF
/
templates
/
time_edit.tpl
diff --git
a/WEB-INF/templates/time_edit.tpl
b/WEB-INF/templates/time_edit.tpl
index
f693215
..
1d346bb
100644
(file)
--- a/
WEB-INF/templates/time_edit.tpl
+++ b/
WEB-INF/templates/time_edit.tpl
@@
-20,6
+20,12
@@
<td><label>{$forms.timeRecordForm.billable.control}{$i18n.form.time.billable}</label></td>
</tr>
{/if}
<td><label>{$forms.timeRecordForm.billable.control}{$i18n.form.time.billable}</label></td>
</tr>
{/if}
+{if ($user->canManageTeam() && $user->isPluginEnabled('ps'))}
+ <tr>
+ <td align="right"> </td>
+ <td><label>{$forms.timeRecordForm.paid.control}{$i18n.label.paid}</label></td>
+ </tr>
+{/if}
{if ($custom_fields && $custom_fields->fields[0])}
<tr>
<td align="right">{$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}:</td><td>{$forms.timeRecordForm.cf_1.control}</td>
{if ($custom_fields && $custom_fields->fields[0])}
<tr>
<td align="right">{$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}:</td><td>{$forms.timeRecordForm.cf_1.control}</td>
@@
-33,7
+39,7
@@
{/if}
{if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
<tr>
{/if}
{if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
<tr>
- <td align="right">{$i18n.label.task}:</td>
+ <td align="right">{$i18n.label.task}
{if $user->task_required} (*){/if}
:</td>
<td>{$forms.timeRecordForm.task.control}</td>
</tr>
{/if}
<td>{$forms.timeRecordForm.task.control}</td>
</tr>
{/if}
@@
-50,7
+56,7
@@
{if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
<tr>
<td align="right">{$i18n.label.duration}:</td>
{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} {
$i18n.form.time.duration_format
}</td>
+ <td>{$forms.timeRecordForm.duration.control} {
if $user->decimal_mark == ','}{str_replace('.', ',', $i18n.form.time.duration_format)}{else}{$i18n.form.time.duration_format}{/if
}</td>
</tr>
{/if}
<tr>
</tr>
{/if}
<tr>