projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A bit of refactoring in week view.
[timetracker.git]
/
WEB-INF
/
templates
/
week.tpl
diff --git
a/WEB-INF/templates/week.tpl
b/WEB-INF/templates/week.tpl
index
366762c
..
8d56707
100644
(file)
--- a/
WEB-INF/templates/week.tpl
+++ b/
WEB-INF/templates/week.tpl
@@
-56,13
+56,13
@@
function fillDropdowns() {
<td align="right">{$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}:</td><td>{$forms.weekTimeForm.cf_1.control}</td>
</tr>
{/if}
<td align="right">{$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}:</td><td>{$forms.weekTimeForm.cf_1.control}</td>
</tr>
{/if}
-{if
($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)
}
+{if
$show_project
}
<tr>
<td align="right">{$i18n.label.project} (*):</td>
<td>{$forms.weekTimeForm.project.control}</td>
</tr>
{/if}
<tr>
<td align="right">{$i18n.label.project} (*):</td>
<td>{$forms.weekTimeForm.project.control}</td>
</tr>
{/if}
-{if
($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)
}
+{if
$show_task
}
<tr>
<td align="right">{$i18n.label.task}:</td>
<td>{$forms.weekTimeForm.task.control}</td>
<tr>
<td align="right">{$i18n.label.task}:</td>
<td>{$forms.weekTimeForm.task.control}</td>