X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fedit_prescription.sh;h=dac7270362fcd58998dae5818bf18866380be51f;hp=8ac9bb7e5c6cef68d9f1d530cbb96370f2a7e34b;hb=9f7782b085e44a2ecb656674f48be0e2b20fc31c;hpb=32be1b8e73becaf528205136995261c3f03bae30 diff --git a/templates/edit_prescription.sh b/templates/edit_prescription.sh index 8ac9bb7..dac7270 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 ) - - - - - -