Implemented week view as a configurable plugin.
[timetracker.git] / WEB-INF / templates / profile_edit.tpl
index 4a05bb0..4967259 100644 (file)
@@ -81,6 +81,14 @@ function handlePluginCheckboxes() {
   } else {
     configureLabel.style.visibility = "hidden";
   }
+
+  var weekViewCheckbox = document.getElementById("week_view");
+  configureLabel = document.getElementById("week_view_config");
+  if (weekViewCheckbox.checked){
+    configureLabel.style.visibility = "visible";
+  } else {
+    configureLabel.style.visibility = "hidden";
+  }
 }
 </script>
 
@@ -172,8 +180,8 @@ function handlePluginCheckboxes() {
 {/if}
           {* initialize preview text *}
           <script>
-            MakeFormatPreview("date_format_preview", document.getElementById("format_date"));
-            MakeFormatPreview("time_format_preview", document.getElementById("format_time"));
+            MakeFormatPreview("date_format_preview", document.getElementById("date_format"));
+            MakeFormatPreview("time_format_preview", document.getElementById("time_format"));
 
             function adjustDecimalPreview()
             {
@@ -205,12 +213,10 @@ function handlePluginCheckboxes() {
             <td align="right" nowrap>{$forms.profileForm.invoices.control}</td>
             <td><label for="invoices">{$i18n.title.invoices}</label></td>
           </tr>
-{if ($smarty.const.DEBUG_PAID_STATUS == 1)}
           <tr>
             <td align="right" nowrap>{$forms.profileForm.paid_status.control}</td>
             <td><label for="paid_status">{$i18n.label.paid_status}</label></td>
           </tr>
-{/if}
           <tr>
             <td align="right" nowrap>{$forms.profileForm.custom_fields.control}</td>
             <td><label for="custom_fields">{$i18n.label.custom_fields}</label> <span id="cf_config"><a href="cf_custom_fields.php">{$i18n.label.configure}</a></span></td>
@@ -231,6 +237,10 @@ function handlePluginCheckboxes() {
             <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>
+          <tr>
+            <td align="right" nowrap>{$forms.profileForm.week_view.control}</td>
+            <td><label for="week_view">{$i18n.label.week_view}</label> <span id="week_view_config"><a href="week_view.php">{$i18n.label.configure}</a></span></td>
+          </tr>
 {/if}
 
           <tr>