X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fedit_prescription.sh;h=285739aa3f9134ff76acb9b3aa625af6979108cb;hp=85eeb20b3aa7051f2c9249a6ae30e2014ddeb1c5;hb=9b13f7013dd882029ab3cf106d659a48243d910d;hpb=547778804d2beb3394ae47218d7490e6095b778c diff --git a/templates/edit_prescription.sh b/templates/edit_prescription.sh index 85eeb20..285739a 100755 --- a/templates/edit_prescription.sh +++ b/templates/edit_prescription.sh @@ -16,11 +16,42 @@ # along with Confetti. If not, see . check(){ [ "$1" = "$2" ] && printf checked} +[ -z $mpx[presctype] ] && mpx[presctype]=doctor_compulsory cat < + + + + + + + +
+ + + + + + + + +
+ + + + +
+ + + + + + +
+
@@ -37,14 +68,19 @@ cat <
-

$(l10n therapy_prescription)

+

$(l10n therapy_prescription)

- + + +
+ + +

$(l10n prescription_by_catalogue)

@@ -56,11 +92,11 @@ cat <
- - -
+
+ +
@@ -77,28 +113,44 @@ cat <$(l10n quantity) +

+

+ +$( for n in {0..10}; do + if [ "$n" -eq 0 -o -n "${mpx[quantity$n]}" -o -n "${mpx[remidy$n]}" -o -n "${mpx[quantity_weekly$n]}" ]; then + printf '' + else + printf '' + fi + printf '

+ + + +

+ ' "$(l10n quantity)" "${mpx[quantity$n]}" \ + "$(l10n remidy)" "${mpx[remidy$n]}" \ + "$(l10n quantity_weekly)" "${mpx[quantity_weekly$n]}" +done ) - - - - - -
+


+

+
+

+ + +

- - -