From 61dd42da2dc4811146725b3a85077c7978a063dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 9 Jan 2020 00:06:08 +0100 Subject: [PATCH] dumb down prescription display, display therapy list --- therapies/l10n.sh | 4 ++- therapies/page.sh | 66 ++++++++++++++++++++++--------------------- therapies/therapy.css | 38 +++++++++++++++++++++---- 3 files changed, 69 insertions(+), 39 deletions(-) diff --git a/therapies/l10n.sh b/therapies/l10n.sh index d03357c..167dc4d 100755 --- a/therapies/l10n.sh +++ b/therapies/l10n.sh @@ -52,7 +52,9 @@ l10n(){ save) printf '%s\n' "Speichern";; cancel) printf '%s\n' "Abbrechen";; delete) printf '%s\n' "Löschen";; - therapy) printf '%s\n' "Zur Therapie";; + + therapy) printf '%s\n' "Therapie";; + therapies) printf '%s\n' "Therapien";; prescriptionlist) printf '%s\n' "Zur Verordnungsliste";; delete_session) printf '%s\n' "Therapiesitzung entfernen";; diff --git a/therapies/page.sh b/therapies/page.sh index ecf113a..4c236c4 100755 --- a/therapies/page.sh +++ b/therapies/page.sh @@ -93,34 +93,41 @@ cat < a { + display: inline-block; + border: 1px solid black; + margin: .5em .5em 0 0; padding: .25em .5em; + background-color: #DDF; + color: #000; +} +div.therapies > a.current { + background-color: #CCF; +} + +div.prescription { + background-color: #CFF; +} +div.prescription h3 { + margin-top: .5em; +} + div.prescription span { display: inline-block; width: 50%; @@ -81,7 +103,10 @@ div.prescription span.catalogue { padding: .5ex 1ex; } -div.prescription ul {margin-top: 0;} +div.prescription ul { + margin-top: .5em; + margin-left: 1.5em; +} div.prescription label.checkbox, div.prescription label.radio { @@ -223,7 +248,7 @@ fieldset.color > input.color + label { @media(min-width: 800px){ h1, label.tab, div.tab, fieldset.tab, - div.patient, div.prescription { + div.patient, div.prescription, div.therapies { width: 38%; margin-right: 0; } @@ -244,18 +269,19 @@ fieldset.color > input.color + label { h1 {display: none;} -div.patient, div.prescription { margin-top: 1em; } -div.prescription { +div.patient, div.prescription, div.therapies { margin-top: .5em; } +div.prescription, div.therapies { border: 1px solid black; - background-color: #EEE; padding: .125em 1.25ex .5em 1.25ex; } div > h2 { margin: 0; border-bottom: 1px solid black; } +/* div:nth-child(n+2) > a:first-of-type { display: block; margin: .125em 0 .5em 0; text-decoration: none; } +*/ #report fieldset.tab, #report label.tab { -- 2.39.2