projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring. Moved week_menu config option to plugin config.
[timetracker.git]
/
WEB-INF
/
templates
/
week.tpl
diff --git
a/WEB-INF/templates/week.tpl
b/WEB-INF/templates/week.tpl
index
cd45a3b
..
6f97c4d
100644
(file)
--- a/
WEB-INF/templates/week.tpl
+++ b/
WEB-INF/templates/week.tpl
@@
-39,9
+39,9
@@
function fillDropdowns() {
<td>{$forms.weekTimeForm.onBehalfUser.control}</td>
</tr>
{/if}
<td>{$forms.weekTimeForm.onBehalfUser.control}</td>
</tr>
{/if}
-{if $
user->isPluginEnabled('cl')
}
+{if $
show_client
}
<tr>
<tr>
- <td align="right">{$i18n.label.client}{if $user->is
PluginEnabled('cm
')} (*){/if}:</td>
+ <td align="right">{$i18n.label.client}{if $user->is
OptionEnabled('client_required
')} (*){/if}:</td>
<td>{$forms.weekTimeForm.client.control}</td>
</tr>
{/if}
<td>{$forms.weekTimeForm.client.control}</td>
</tr>
{/if}
@@
-56,19
+56,19
@@
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>
{/if}
<tr>
<td align="right">{$i18n.label.task}:</td>
<td>{$forms.weekTimeForm.task.control}</td>
</tr>
{/if}
-{if $
user->isPluginEnabled('wvn')
}
+{if $
show_week_note
}
<tr>
<td align="right">{$i18n.label.week_note}:</td>
<td>{$forms.weekTimeForm.note.control}</td>
<tr>
<td align="right">{$i18n.label.week_note}:</td>
<td>{$forms.weekTimeForm.note.control}</td>
@@
-96,7
+96,7
@@
function fillDropdowns() {
<tr><td> </td></tr>
</table>
<tr><td> </td></tr>
</table>
-{if $
user->isPluginEnabled('wvl')
}
+{if $
show_week_list
}
<table width="720">
<tr>
<td valign="top">
<table width="720">
<tr>
<td valign="top">
@@
-181,7
+181,7
@@
function fillDropdowns() {
{if $time_records}
<table cellpadding="3" cellspacing="1" width="720">
{if $time_records}
<table cellpadding="3" cellspacing="1" width="720">
- {if $
user->isPluginEnabled('wvl')
}
+ {if $
show_week_list
}
<tr>
<td align="left">{$i18n.label.week_total}: {$week_total}</td>
<td></td>
<tr>
<td align="left">{$i18n.label.week_total}: {$week_total}</td>
<td></td>