]> git.plutz.net Git - confetti/blobdiff - templates/view_prescription.sh
therapy dates in prescription view
[confetti] / templates / view_prescription.sh
index 0fdd871691c7ce1ea4bb86b425ec36c55025af05..ced72413830caa682ff56ef390c0f14714e2417a 100755 (executable)
@@ -96,13 +96,22 @@ done )
   <label for="indicator_reading">$(l10n indicator_reading)</label>
   <span id="indicator_reading">${mpx[indicator_reading]}</span>
 </p>
+</fieldset>
+
+<p class="therapy_dates">
+  <label>$(l10n therapy_dates):</label>
+  $(therapy_dates "$id" \
+    | while read date; do
+      printf '<span>%s</span>' "$date"
+    done
+  )
+</p>
+
 <p class="issuer">
   <label>$(l10n issuer)</label>
   <span id="issuer">$mpx[issuer]</span>
 </p>
 
-</fieldset>
-
 <fieldset class="controls">
 <a class="button" href="?p=prescriptions&amp;edit=${mpx[prescription]}#${mpx[prescription]}">$(l10n edit)</a>
 <a class="button" href="?p=therapy&amp;id=${mpx[prescription]%.mpx}.tpy">$(l10n therapy)</a>