From: Paul Hänsch Date: Mon, 7 Sep 2020 10:05:30 +0000 (+0200) Subject: disable autosubmit, submit when using back-button X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=35c5b60b39742a649d6196a6773754272b475bbd;p=lobster disable autosubmit, submit when using back-button --- diff --git a/therapies/page.sh b/therapies/page.sh index a36505f..56b5865 100755 --- a/therapies/page.sh +++ b/therapies/page.sh @@ -93,7 +93,7 @@ cat < button[type=submit]:hover { background-color: #FEE; } +form > button#backbutton { + position: absolute; + top: 2em; + left: 2%; + background: transparent; + border: none; + padding: 0; + margin: 0; +} + + input.tab { display: none; } input.tab + label.tab { display: block; } input.tab + label.tab::before { content: '\25b8 \00a0'; float: left;} diff --git a/therapies/update_therapy.sh b/therapies/update_therapy.sh index 0474b3b..c72d040 100755 --- a/therapies/update_therapy.sh +++ b/therapies/update_therapy.sh @@ -125,6 +125,8 @@ if [ "$(POST autosubmit)" = "true" ]; then msg="$(transid "$tpyfile")" printf 'HTTP/1.1 200 OK\r\nContent-Length: %i\r\n\r\n%s' \ "${#msg}" "${msg}" +elif [ "$(POST vcfreturn)" ]; then + REDIRECT "/cards/#${tpy%.*}.vcf" else REDIRECT "/therapies/${tpy%.*}/${tpy#*.}" fi