mpx=()
cat "$prescfile" |while read -r line; do
val="${line#*:}"
- mpx[${line%%:*}]="${val//\\n/$BR}"
+ mpx[${line%%:*}]="$(htmlsafe "${val//\\n/$BR}")"
done
. "$_EXEC/templates/view_prescription.sh"
margin: 0 2%;
}
-div.prescription .insurance{ display: block; margin: .5ex 0 1ex 0; }
+div.prescription span {
+ display: inline-block;
+ width: 50%;
+ margin-right: -.75ex;
+}
+div.prescription span label { font-weight: bold; margin-right: 1ex;}
+div.prescription span.prescno,
+div.prescription span.catalogue {
+ width: 33%;
+ font-weight: bold;
+ margin-bottom: .5em;
+}
+
div.prescription label.checkbox,
-div.prescription label.radio { padding-left: 1.25em; font-size: 1em;}
+div.prescription label.radio {
+ display: block;
+ padding-left: 1.25em;
+ font-size: 1em;
+ margin: .5em 0;
+}
div.prescription label.checkbox:before,
div.prescription label.radio:before {
esac
cat <<EOF
- <h1>Behandlungen</h1>
+ <h1>$(l10n therapy)</h1>
<div class="patient">
<h2>$client_name</h2>
<div class="prescription">
<h2>$(l10n therapy_prescription)</h2>
<span class="insurance">${mpx[insurance]}</span>
- <span class="date">${mpx[date]}</span>
+ <span class="date"><label>$(l10n date):</label>${mpx[date]}</span>
+
<label class="checkbox ${mpx[prescreviewed]:+checked}" for="prescreviewed">
$([ -n "${mpx[prescreviewed]}" ] && printf %s "$(l10n prescreviewed)" \
|| printf %s "$(l10n prescreview)" )
</label>
+
+ ${mpx[prescno]:+<span class="prescno">$(l10n presc${mpx[prescno]})</span>}
+ ${mpx[grouptherapy]:+<span class="catalogue">$(l10n grouptherapy)</span>}
+ ${mpx[housecall]:+<span class="catalogue">$(l10n housecall)</span>}
+ ${mpx[report]:+<span class="catalogue">$(l10n report)</span>}
+
<ul>
- ${mpx[remidy]:+ <li>${mpx[quantity]} ${mpx[remidy]}</li>}
- ${mpx[remidy1]:+<li>${mpx[quantity1]} ${mpx[remidy1]}</li>}
+ ${mpx[remidy]:+ <li>${mpx[quantity]} ${mpx[remidy]} ${mpx[quantity_weekly]:+($mpx[quantity_weekly] $(l10n weekly))}</li>}
+ ${mpx[remidy1]:+<li>${mpx[quantity1]} ${mpx[remidy1]} ${mpx[quantity_weekly1]:+($mpx[quantity_weekly1] $(l10n weekly))}</li>}
</ul>
+ ${mpx[indicator]:+<span class="indicator"><label>$(l10n indicator):</label>${mpx[indicator]}</span>}
+ ${mpx[icd10]:+<span class="icd10"> <label>$(l10n icd10):</label>${mpx[icd10]}</span>}
+
${mpx[addcontrib]:+
<label class='checkbox ${mpx[contribconfirm]:+checked}' for="addcontrib">
$([ -n "${mpx[contribconfirm]}" ] && printf %s "$(l10n contribconfirm)" ${mpx[contribconfirm]} \