projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved input checking for role editor.
[timetracker.git]
/
WEB-INF
/
templates
/
profile_edit.tpl
diff --git
a/WEB-INF/templates/profile_edit.tpl
b/WEB-INF/templates/profile_edit.tpl
index
51d01cc
..
244c6cb
100644
(file)
--- a/
WEB-INF/templates/profile_edit.tpl
+++ b/
WEB-INF/templates/profile_edit.tpl
@@
-129,7
+129,7
@@
function handlePluginCheckboxes() {
<td>{$i18n.label.required_fields}</td>
</tr>
<td>{$i18n.label.required_fields}</td>
</tr>
-{if $user->
canManageTeam(
)}
+{if $user->
isManager() || ($user->canManageTeam() && !defined(MANAGER_ONLY_TEAM_SETTINGS)
)}
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
@@
-141,6
+141,12
@@
function handlePluginCheckboxes() {
<td align="right">{$i18n.label.currency}:</td>
<td>{$forms.profileForm.currency.control}</td>
</tr>
<td align="right">{$i18n.label.currency}:</td>
<td>{$forms.profileForm.currency.control}</td>
</tr>
+ {if $user->can('manage_roles')}
+ <tr>
+ <td align="right" nowrap>{$i18n.label.roles}:</td>
+ <td><a href="roles.php">{$i18n.label.configure}</a></td>
+ </tr>
+ {/if}
<tr>
<td align="right" nowrap>{$i18n.label.language}:</td>
<td>{$forms.profileForm.lang.control}</td>
<tr>
<td align="right" nowrap>{$i18n.label.language}:</td>
<td>{$forms.profileForm.lang.control}</td>
@@
-172,6
+178,10
@@
function handlePluginCheckboxes() {
<td align="right" nowrap>{$i18n.form.profile.record_type}:</td>
<td>{$forms.profileForm.record_type.control}</td>
</tr>
<td align="right" nowrap>{$i18n.form.profile.record_type}:</td>
<td>{$forms.profileForm.record_type.control}</td>
</tr>
+ <tr>
+ <td align="right" nowrap>{$i18n.form.profile.punch_mode}:</td>
+ <td>{$forms.profileForm.punch_mode.control} <a href="https://www.anuko.com/lp/tt_18.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
+ </tr>
<tr>
<td align="right" nowrap>{$i18n.form.profile.allow_overlap}:</td>
<td>{$forms.profileForm.allow_overlap.control} <a href="https://www.anuko.com/lp/tt_16.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
<tr>
<td align="right" nowrap>{$i18n.form.profile.allow_overlap}:</td>
<td>{$forms.profileForm.allow_overlap.control} <a href="https://www.anuko.com/lp/tt_16.htm" target="_blank">{$i18n.label.what_is_it}</a></td>