[h1 $(l10n therapy)]
[div .patient
- [h2 . [a "/cards/#{id%.*}.vcf" ⬅ $(VCF FN |HTML)]]
+ [h2 . [a "/cards/#${id%.*}.vcf" ⬅ $(VCF FN |HTML)]]
]
[div .therapies
| sed -E ':X;N;$!bX; s;^[\n ]+;;; s;[\n ]+$;;; s;(\n.*\n|\n); - ;;'
)"
if [ "${tpy%.*}.${tpy#*.}" = "${id}" ]; then
- printf '[a .item .therapy .current href="/therapies/%s" . %s]' \
+ printf '[a .item .therapy .current href="/therapies/%s" . %s] ' \
"${tpy%.*}/${tpy#*.}" "$(HTML "${tpydates:--}")"
else
- printf '[a .item .therapy href="/therapies/%s" . %s]' \
+ printf '[a .item .therapy href="/therapies/%s" . %s] ' \
"${tpy%.*}/${tpy#*.}" "$(HTML "${tpydates:--}")"
fi
- done |sort -r
+ done |sort -n
)
+ [a .item .therapy href="/therapies/${id%%.*}/new" . +]
]
EOF
[canvas #canvas .dotmark .ov width="${bg_dim%x*}" height="${bg_dim#*x}" ]
[input type=hidden #image_serialize name=imagedata value=""]
- [button type=submit $(l10n save)]
+ [button #savebutton type=submit $(l10n save)]
]
[span #jsdebug style="display: none; position: fixed; right:0; bottom:0" Debug]
[script type="text/javascript" src="/therapies/therapy_draw.js"]
+[script type="text/javascript" src="/therapies/autosave.js"]
EOF