A bit more progress on Work units plugin, made its config page working.
[timetracker.git] / WEB-INF / templates / group_edit.tpl
index 144971b..dd05911 100644 (file)
@@ -91,6 +91,14 @@ function handlePluginCheckboxes() {
   } else {
     configureLabel.style.visibility = "hidden";
   }
+
+  var workUnitsCheckbox = document.getElementById("work_units");
+  configureLabel = document.getElementById("work_units_config");
+  if (workUnitsCheckbox.checked){
+    configureLabel.style.visibility = "visible";
+  } else {
+    configureLabel.style.visibility = "hidden";
+  }
 }
 </script>
 
@@ -239,6 +247,12 @@ function handlePluginCheckboxes() {
             <td align="right" nowrap>{$forms.groupForm.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 defined('WORK_UNITS_DEBUG')}
+          <tr>
+            <td align="right" nowrap>{$forms.groupForm.work_units.control}</td>
+            <td><label for="week_view">{$i18n.label.work_units}</label> <span id="work_units_config"><a href="work_units.php">{$i18n.label.configure}</a></span></td>
+          </tr>
+  {/if}
 {/if}
 
           <tr>