From: paul Date: Fri, 20 May 2016 10:18:46 +0000 (+0000) Subject: reduced latency, sticky note in therapy view X-Git-Url: https://git.plutz.net/?p=confetti;a=commitdiff_plain;h=be911da6c63f2129a62dc50f92b749e0f2bb67ee;ds=sidebyside reduced latency, sticky note in therapy view svn path=/trunk/; revision=106 --- diff --git a/templates/attendees.html.sh b/templates/attendees.html.sh index 12f1226..3fee91a 100755 --- a/templates/attendees.html.sh +++ b/templates/attendees.html.sh @@ -58,11 +58,11 @@ cat < ${edit:+$(edit_card "$edit")} +EOF -$( - listcards |grep ${edit:+-v} "$edit" \ - | while read card; do - cat <<-ENDCARD +listcards |grep ${edit:+-v} "$edit" \ +| while read card; do + cat <<-ENDCARD
$(view_card "$card")
@@ -71,8 +71,6 @@ $(
ENDCARD - done -) -EOF +done # vi:set filetype=html: diff --git a/templates/clients.html.sh b/templates/clients.html.sh index db8a4de..aef2c96 100755 --- a/templates/clients.html.sh +++ b/templates/clients.html.sh @@ -25,7 +25,7 @@ check_order(){ edit="${_GET[edit]}" [ \! -f "vcard/$edit" -a \! -f "temp/$edit" ] && edit='' [ -z "${_GET[filtertype]}" ] && _GET[filtertype]="any" -[ -z "${_GET[order]}" ] && _GET[order]="firstname" +[ -z "${_GET[order]}" ] && _GET[order]="lastname" cat < @@ -57,11 +57,11 @@ cat < ${edit:+$(edit_card "$edit")} +EOF -$( - listcards |grep ${edit:+-v} "$edit" \ - | while read card; do - cat <<-ENDCARD +listcards |grep ${edit:+-v} "$edit" \ +| while read card; do + cat <<-ENDCARD
$(view_card "$card")
@@ -71,8 +71,6 @@ $(
ENDCARD - done -) -EOF +done # vi:set filetype=html: diff --git a/templates/prescriptions.html.sh b/templates/prescriptions.html.sh index a662c74..c4ef19a 100755 --- a/templates/prescriptions.html.sh +++ b/templates/prescriptions.html.sh @@ -31,19 +31,17 @@ cat <$(l10n newprescription) +EOF -$(list_prescriptions "$client" |grep -q "$edit" || edit_prescription "$edit") - -$(list_prescriptions "$client" \ - |while read pre; do - [ "$pre" = "$edit" ] \ - && edit_prescription "$pre" \ - || view_prescription "$pre" - done -) +list_prescriptions "$client" |grep -q "$edit" || edit_prescription "$edit" - +list_prescriptions "$client" \ +|while read pre; do + [ "$pre" = "$edit" ] \ + && edit_prescription "$pre" \ + || view_prescription "$pre" +done -EOF +# # vi:set filetype=html: diff --git a/templates/therapy.css.sh b/templates/therapy.css.sh index 4b87bcc..ce636a4 100755 --- a/templates/therapy.css.sh +++ b/templates/therapy.css.sh @@ -148,6 +148,64 @@ div:nth-child(n+2) > a:first-of-type { text-decoration: none; } +input.stickynote { display:none; } +input.stickynote + .stickynote { + position: fixed; + background-color: #FF8; + top: 4em; bottom: 4em; + left: -4.5em; width: 5em; + padding: 1ex; + max-height: 90%; + z-index: 2; +} +input.stickynote + .stickynote > * { display: none; } +input.stickynote + .stickynote > label { + position: absolute; + top: 0; bottom: 0; + display: block; + text-align: right; + font-weight: bold; +} +input.stickynote + .stickynote:hover { + left: -1ex; +} +input.stickynote:checked + .stickynote { + width: auto; + left: 1em; + right: 4em; + padding-top: .5ex; +} +input.stickynote:checked + .stickynote > textarea { + display: block; + position: absolute; + left; 0; right: 0; bottom: 0; top: 0; + width: 100%; height: 100%; + background-color: #FF8; + padding: 2em 1em; +} +input.stickynote:checked + .stickynote > button { + display: block; + position: absolute; + right: .5ex; bottom: .5ex; + z-index: 2; +} +input.stickynote:checked + .stickynote > label { + display: block; + position: static; + font-size: 0; +} +input.stickynote:checked + .stickynote > label:before { + position: absolute; + font-size: initial; + content: "x"; + top: .5ex; right: .5ex; + padding: .125ex .75ex; + background-color: #000; + color: #FFF; + border-radius: 1ex; + z-index: 2; +} + fieldset.tab, label.tab { font-size: 1.25em; diff --git a/templates/therapy.html.sh b/templates/therapy.html.sh index eb93553..0c91487 100755 --- a/templates/therapy.html.sh +++ b/templates/therapy.html.sh @@ -125,56 +125,65 @@ case "$tpy[color]" in esac cat <$(l10n therapy) +

$(l10n therapy)

-
-

$client_name

- < $(l10n prescriptionlist) -
+
+

$client_name

+ < $(l10n prescriptionlist) +
-
-

$(l10n therapy_prescription)

- ${mpx[insurance]} - ${mpx[date]} - - - - ${mpx[prescno]:+$(l10n presc${mpx[prescno]})} - ${mpx[grouptherapy]:+$(l10n grouptherapy)} - ${mpx[housecall]:+$(l10n housecall)} - ${mpx[report]:+$(l10n report)} - -
    - ${mpx[remidy]:+
  • ${mpx[quantity]} ${mpx[remidy]} ${mpx[quantity_weekly]:+($mpx[quantity_weekly] $(l10n weekly))}
  • } - ${mpx[remidy1]:+
  • ${mpx[quantity1]} ${mpx[remidy1]} ${mpx[quantity_weekly1]:+($mpx[quantity_weekly1] $(l10n weekly))}
  • } -
- - ${mpx[indicator]:+${mpx[indicator]}} - ${mpx[icd10]:+ ${mpx[icd10]}} - - ${mpx[addcontrib]:+ - - } -
+
+

$(l10n therapy_prescription)

+ ${mpx[insurance]} + ${mpx[date]} + + + + ${mpx[prescno]:+$(l10n presc${mpx[prescno]})} + ${mpx[grouptherapy]:+$(l10n grouptherapy)} + ${mpx[housecall]:+$(l10n housecall)} + ${mpx[report]:+$(l10n report)} + +
    + ${mpx[remidy]:+
  • ${mpx[quantity]} ${mpx[remidy]} ${mpx[quantity_weekly]:+($mpx[quantity_weekly] $(l10n weekly))}
  • } + ${mpx[remidy1]:+
  • ${mpx[quantity1]} ${mpx[remidy1]} ${mpx[quantity_weekly1]:+($mpx[quantity_weekly1] $(l10n weekly))}
  • } +
+ + ${mpx[indicator]:+${mpx[indicator]}} + ${mpx[icd10]:+ ${mpx[icd10]}} + + ${mpx[addcontrib]:+ + + } +
+ +
+ + + +
+ +EOF - $(therapy_sessions) +therapy_sessions +cat <