X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fedit_prescription.sh;h=dac7270362fcd58998dae5818bf18866380be51f;hp=4701ebb813a51f42671ce3e21325ade4960c93b3;hb=2d1ff8e80efbded90e01dc0fe477757bbc7e08f0;hpb=015242823eb4a79cf615bef6951b0af6bd0a5b01 diff --git a/templates/edit_prescription.sh b/templates/edit_prescription.sh index 4701ebb..dac7270 100755 --- a/templates/edit_prescription.sh +++ b/templates/edit_prescription.sh @@ -16,67 +16,41 @@ # along with Confetti. If not, see . check(){ [ "$1" = "$2" ] && printf checked} +[ -z $mpx[presctype] ] && mpx[presctype]=doctor_compulsory cat < - - - - - - - - - - - - - - - - - - - - - - - - - -
$(l10n doctor)$(l10n dentist)$(l10n noprescription)$(l10n altpractition)
- - - - - - - - - - - -
- - - - - - - - - -
- - - - - - - -
+ + + + + + + +
+ + + + + + + + +
+ + + + +
+ + + + + + +
@@ -139,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 ) - - - - - -