X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fedit_prescription.sh;h=285739aa3f9134ff76acb9b3aa625af6979108cb;hp=8ac9bb7e5c6cef68d9f1d530cbb96370f2a7e34b;hb=9b13f7013dd882029ab3cf106d659a48243d910d;hpb=fa569abc3f855692322f791a0c1112f85126e990;ds=sidebyside diff --git a/templates/edit_prescription.sh b/templates/edit_prescription.sh index 8ac9bb7..285739a 100755 --- a/templates/edit_prescription.sh +++ b/templates/edit_prescription.sh @@ -113,16 +113,28 @@ 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 ) - - - - - -