X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Ftherapy.html.sh;h=6e61ccd9e74235cdad1e38a752bd77cc0c777f0d;hp=05c50fd157f8338afa524c325cfbc568048703d2;hb=73e1291b6d0d15ba93d78e7eb167a1eb30347db3;hpb=9b13f7013dd882029ab3cf106d659a48243d910d diff --git a/templates/therapy.html.sh b/templates/therapy.html.sh index 05c50fd..6e61ccd 100755 --- a/templates/therapy.html.sh +++ b/templates/therapy.html.sh @@ -33,8 +33,13 @@ t_session_note(){ *) c7=checked;; esac +if [ "$note_n" -eq 1 -o -n "${tpy[session${session_n}_note${note_n}]}" ]; then + printf '' +else + printf '' +fi cat < +
@@ -54,16 +59,8 @@ t_session(){ sid=session${session_n} if [ "$tpy[${sid}_sigset]" = pos ]; then - sig=neg - sigcheck=checked - elif [ "$tpy[${sid}_sigset]" = neg ]; then - sig=pos - unset sigcheck - elif [ "$tpy[${sid}_signature]" = pos ]; then - sig=neg sigcheck=checked else - sig=pos unset sigcheck fi @@ -76,19 +73,13 @@ cat <${tpy[${sid}_therapist]} + -->
- $(n=1; while [ -n "${tpy[${sid}_note${n}]+x}" ]; do - t_session_note $session_n $n - n=$(($n+1)) - done - printf '' "$sid" "$n" - ) + $( for n in {1..10}; do t_session_note $session_n $n; done ) -
EOF } @@ -163,9 +154,13 @@ cat < } + + + +
${mpx[indicator_reading]}
-
+ @@ -175,6 +170,10 @@ cat <$(l10n save)
+ +