]> git.plutz.net Git - confetti/blobdiff - templates/therapy.html.sh
Lobster: time sheet on therapy note
[confetti] / templates / therapy.html.sh
index e8af01505d69162934a44936732e8d177f7b0253..1821c24530c97b980d31fbad9ba50c87a116ac45 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2016 Paul Hänsch
+# Copyright 2016, 2017 Paul Hänsch
 #
 # This file is part of Confetti.
 # 
@@ -153,8 +153,27 @@ cat <<EOF
   <input class="stickynote" type="checkbox" name="c_stickynote" id="show_stickynote">
   <fieldset class="stickynote">
     <label for="show_stickynote">$(l10n notes)</label>
+    <h2>$(l10n notes)</h2>
     <textarea name="stickynote">${tpy[stickynote]}</textarea>
-    <button type=submit>$(l10n save)</button>
+    <button type="submit">$(l10n save)</button>
+  </fieldset>
+
+  <input class="stickynote" type="checkbox" name="c_timesheet" id="show_timesheet">
+  <fieldset class="stickynote">
+    <label for="show_timesheet">$(l10n timesheet)</label>
+    <h2>$(l10n timesheet)</h2>
+    <table><thead>
+      <tr><th>$(l10n time_goal)</th><th>$(l10n time_actual)</th><th>$(l10n time_difference)</th></tr>
+    </thead><tbody>
+      $(for n in '' {0..10}; do
+        printf '<tr><td><input type="number" name="tsgoal" value="%s"/></td>
+                    <td><input type="number" name="tsactual" value="%s"/></td>
+                    <td>%s</td>
+                </tr>\n' \
+                "$mpx[tsgoal${n}]" "$mpx[tsactual${n}]" "$((${mpx[tsgoal${n}]:-0} - ${mpx[tsactual${n}]:-0}))"
+      done)
+    </tbody></table>
+    <button type="submit">$(l10n save)</button>
   </fieldset>
 
   <!--input class="tab" type="checkbox" id="lookout">
@@ -204,4 +223,5 @@ cat <<EOF
 
 <script type="text/javascript" src="?static=therapy_draw.js"></script>
 EOF
+
 # vi:set filetype=html: