X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fedit_prescription.sh;h=b7a9af46341ab513e43430925fefe011d2bed85b;hp=8ac9bb7e5c6cef68d9f1d530cbb96370f2a7e34b;hb=957f0ced0095d421006a0dbc68ef9be8a4325514;hpb=32be1b8e73becaf528205136995261c3f03bae30 diff --git a/templates/edit_prescription.sh b/templates/edit_prescription.sh index 8ac9bb7..b7a9af4 100755 --- a/templates/edit_prescription.sh +++ b/templates/edit_prescription.sh @@ -113,16 +113,27 @@ 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 )

@@ -137,6 +148,21 @@ cat <$(l10n indicator_reading)

+
+

+ + + + +