From 35c5b60b39742a649d6196a6773754272b475bbd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 7 Sep 2020 12:05:30 +0200 Subject: [PATCH] disable autosubmit, submit when using back-button --- therapies/page.sh | 6 ++++-- therapies/therapy.css | 11 +++++++++++ therapies/update_therapy.sh | 2 ++ 3 files changed, 17 insertions(+), 2 deletions(-) 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 -- 2.39.2