More work in progress on remote work plugin.
[timetracker.git] / WEB-INF / templates / quotas.tpl
index d8a59ce..1dba4f2 100644 (file)
@@ -1,59 +1,60 @@
-{$forms.monthlyQuotaForm.open}
+<table cellspacing="0" cellpadding="7" border="0" width="720">
+  <tr><td valign="top">{$i18n.form.quota.hint}</td></tr>
+</table>
+
+{$forms.monthlyQuotasForm.open}
 <div style="padding: 0 0 10 0">
-    <table border="0" class="divider">
-        <tr>
-            <td align="center">
-                <table>
-                    <tr>
-                        <td>{$i18n.form.quota.workdayHours}</td>
-                        <td>{$forms.monthlyQuotaForm.dailyWorkingHours.control}</td>
-                        <td><input type="submit" name="dailyHours" value="{$i18n.button.save}"></td>
-                    </tr>
-                </table>
-            </td>
-        </tr>        
-    </table>
-</div>
-<table>
-    <tr>
-        <td>{$i18n.form.quota.year}:</td>
-        <td>{$forms.monthlyQuotaForm.years.control}</td>
-    </tr>
+  <table border="0" class="divider">
     <tr>
-        <td colspan="2">
-            <table> 
-            <tr>
-                <td class="tableHeader">{$i18n.form.quota.month}</td>
-                <td class="tableHeader">{$i18n.form.quota.quota}</td>
-            </tr>
- {foreach $months as $month}
-                <tr>
-                    <td>{$month}</td>
-                    <td>{$forms.monthlyQuotaForm.$month.control}</td>
-                </tr>
- {/foreach}     
-                <tr>
-                    <td colspan="2" style="text-align:center;">
-                        <input type="submit" name="quotas" value="{$i18n.button.save}*">
-                    </td>
-                </tr>
-            </table>
-        </td>
+      <td align="center">
+        <table>
+          <tr>
+            <td>{$i18n.form.quota.workday_hours}:</td>
+            <td>{$forms.monthlyQuotasForm.workdayHours.control}</td>
+          </tr>
+        </table>
+      </td>
     </tr>
+  </table>
+</div>
+<table>
+  <tr>
+    <td>{$i18n.form.quota.year}:</td>
+    <td>{$forms.monthlyQuotasForm.year.control}</td>
+  </tr>
+  <tr><td>&nbsp;</td></tr>
+  <tr>
+    <td colspan="2">
+      <table>
+        <tr>
+          <td class="tableHeaderCentered">{$i18n.form.quota.month}</td>
+          <td class="tableHeaderCentered">{$i18n.label.quota}</td>
+        </tr>
+{foreach $months as $month}
+        <tr>
+          <td>{$month}:</td>
+          <td>{$forms.monthlyQuotasForm.$month.control}</td>
+        </tr>
+{/foreach}
+        <tr><td colspan="2">&nbsp;</td></tr>
+        <tr><td colspan="2" style="text-align:center;"><input type="submit" name="btn_submit" value="{$i18n.button.save}"></td></tr>
+      </table>
+    </td>
+  </tr>
 </table>
-<div>* - {$i18n.form.quota.hint}</div>
-{$forms.monthlyQuotaForm.close}
+{$forms.monthlyQuotasForm.close}
+
 <script>
 function yearChange(value){
-    var url = window.location.href;
-    
-    if (url.indexOf('?') > 0){
-        var parameter = url.substring(url.indexOf('?') + 1, url.length);
-        url = url.replace(parameter, 'year=' + value);
-    } else {
-        url = '?year=' + value;
-    }
-    
-    window.location = url;
+  var url = window.location.href;
+
+  if (url.indexOf('?') > 0){
+    var parameter = url.substring(url.indexOf('?') + 1, url.length);
+    url = url.replace(parameter, 'year=' + value);
+  } else {
+    url = '?year=' + value;
+  }
+
+  window.location = url;
 }
-</script>
\ No newline at end of file
+</script>