projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring in Danish file.
[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
49b610e
..
8c9cb8d
100644
(file)
--- a/
WEB-INF/templates/profile_edit.tpl
+++ b/
WEB-INF/templates/profile_edit.tpl
@@
-28,9
+28,15
@@
function handlePluginCheckboxes() {
taxCheckbox.style.visibility = "hidden";
taxLabel.style.visibility = "hidden";
}
taxCheckbox.style.visibility = "hidden";
taxLabel.style.visibility = "hidden";
}
+ var configureLabel = document.getElementById("expenses_config");
+ if (expensesCheckbox.checked) {
+ configureLabel.style.visibility = "visible";
+ } else {
+ configureLabel.style.visibility = "hidden";
+ }
var customFieldsCheckbox = document.getElementById("custom_fields");
var customFieldsCheckbox = document.getElementById("custom_fields");
-
var
configureLabel = document.getElementById("cf_config");
+ configureLabel = document.getElementById("cf_config");
if (customFieldsCheckbox.checked) {
configureLabel.style.visibility = "visible";
} else {
if (customFieldsCheckbox.checked) {
configureLabel.style.visibility = "visible";
} else {
@@
-53,14
+59,13
@@
function handlePluginCheckboxes() {
configureLabel.style.visibility = "hidden";
}
configureLabel.style.visibility = "hidden";
}
- var
monthlyQuotaCheckBox = document.getElementById("monthly_quota
");
- configureLabel = document.getElementById("
monthly_quota
_config");
- if (
monthlyQuotaCheckB
ox.checked){
+ var
quotasCheckbox = document.getElementById("quotas
");
+ configureLabel = document.getElementById("
quotas
_config");
+ if (
quotasCheckb
ox.checked){
configureLabel.style.visibility = "visible";
} else {
configureLabel.style.visibility = "visible";
} else {
- configureLabel.style.visibility = "hidden";
+
configureLabel.style.visibility = "hidden";
}
}
-
}
</script>
}
</script>
@@
-140,6
+145,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.uncompleted_indicators}:</td>
+ <td>{$forms.profileForm.uncompleted_indicators.control}</td>
+ </tr>
{* initialize preview text *}
<script>
{* initialize preview text *}
<script>
@@
-182,7
+191,7
@@
function handlePluginCheckboxes() {
</tr>
<tr>
<td align="right" nowrap>{$forms.profileForm.expenses.control}</td>
</tr>
<tr>
<td align="right" nowrap>{$forms.profileForm.expenses.control}</td>
- <td><label for="expenses">{$i18n.title.expenses}</label> {$forms.profileForm.tax_expenses.control} <span id="tax_label"><label for="tax_expenses">{$i18n.label.tax}</label></span></td>
+ <td><label for="expenses">{$i18n.title.expenses}</label> {$forms.profileForm.tax_expenses.control} <span id="tax_label"><label for="tax_expenses">{$i18n.label.tax}</label></span>
<span id="expenses_config"><a href="predefined_expenses.php">{$i18n.label.configure}</a></span>
</td>
</tr>
<tr>
<td align="right" nowrap>{$forms.profileForm.notifications.control}</td>
</tr>
<tr>
<td align="right" nowrap>{$forms.profileForm.notifications.control}</td>
@@
-193,8
+202,8
@@
function handlePluginCheckboxes() {
<td><label for="locking">{$i18n.title.locking}</label> <span id="locking_config"><a href="locking.php">{$i18n.label.configure}</a></span></td>
</tr>
<tr>
<td><label for="locking">{$i18n.title.locking}</label> <span id="locking_config"><a href="locking.php">{$i18n.label.configure}</a></span></td>
</tr>
<tr>
- <td align="right" nowrap>{$forms.profileForm.
monthly_quota
.control}</td>
- <td><label for="
monthly_quota">{$i18n.label.monthly_quotas}</label> <span id="monthly_quota
_config"><a href="quotas.php">{$i18n.label.configure}</a></span></td>
+ <td align="right" nowrap>{$forms.profileForm.
quotas
.control}</td>
+ <td><label for="
quotas">{$i18n.label.monthly_quotas}</label> <span id="quotas
_config"><a href="quotas.php">{$i18n.label.configure}</a></span></td>
</tr>
{/if}
</tr>
{/if}