]> git.plutz.net Git - lobster/blobdiff - therapies/page.sh
disable autosubmit, submit when using back-button
[lobster] / therapies / page.sh
index a36505f5c90de5f30fdd6bd6475b1b3e17f481f6..56b58658e1510da9f8af8902347a3397b0f7c8e9 100755 (executable)
@@ -93,7 +93,7 @@ cat <<EOF
 [h1 $(l10n therapy)]
 
 [div .patient
-  [h2 . [a "/cards/#${id%.*}.vcf" &#x2b05; $(VCF FN |HTML)]]
+  [h2 . &#x2b05; $(VCF FN |HTML)]
 ]
 
 [div .therapies
@@ -154,6 +154,8 @@ cat <<EOF
 [form #report method=POST action="/therapies/update_therapy.sh"
   [hidden "id" "$id"][hidden "tid" "$(transid "$tpyfile")"]
 
+  [button #backbutton type=submit name="vcfreturn" value="true" &#x2b05; $(VCF FN |HTML)]
+
   [input .stickynote type=checkbox name=c_stickynote #show_stickynote]
   [fieldset .stickynote
     [label for="show_stickynote" $(l10n notes)]
@@ -222,5 +224,5 @@ cat <<EOF
 [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"]
+[!-- script type="text/javascript" src="/therapies/autosave.js" --]
 EOF