X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fedit_prescription.sh;h=b7a9af46341ab513e43430925fefe011d2bed85b;hp=d4dce32e36f9c50f8a065a48af86ec47c5e6996a;hb=957f0ced0095d421006a0dbc68ef9be8a4325514;hpb=18ecf2c0b034e25c418a83ecb1adefb9f3f04cd8 diff --git a/templates/edit_prescription.sh b/templates/edit_prescription.sh index d4dce32..b7a9af4 100755 --- a/templates/edit_prescription.sh +++ b/templates/edit_prescription.sh @@ -15,58 +15,161 @@ # You should have received a copy of the GNU Affero General Public License # along with Confetti. If not, see . +check(){ [ "$1" = "$2" ] && printf checked} +[ -z $mpx[presctype] ] && mpx[presctype]=doctor_compulsory + cat < + + + + + + + + + +
+ + + + + + + + +
+ + + +
+ + + + + + +
+ +
- + +
- - +
+ + +
- + +
+ +
+

$(l10n therapy_prescription)

- - + + + + +
+ + + +

$(l10n prescription_by_catalogue)

- + - +
+ - +
+ - +
+ - +
+ - +
+ - +
+ - +
+ +
+
- - - +

+ + + +

+ +$( 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 ) +
+

- + +
- - - - + +

+
+

+ + +

+
+

+ + + + +

+
+
+ + + +
END_HTML