.description #indicator_reading { width: 100%; display: block;}
.description #indicator_reading { height: 4em;}
- .description .issuer { display: inline-block; width: 50%; padding: 0; padding-top: 0; margin-left: 50%;}
- .description .issuer label:first-of-type {
- display: block;
- position: relative;
- width: 50%; left: -50%; top: 2.25em;
- font-size: 1em;
- text-align: right;
- padding-right: 1ex;
- }
- .description .issuer input[type=radio] + label:before { content: none; }
- .description .issuer input[type=radio] { display: none; }
- .description .issuer input[type=radio] + label {
- display: inline-block;
- width: 50%;
- padding: .25ex 0; margin: 0;
- text-align: center;
- border: 1px solid black;
- }
- .description .issuer input[type=radio]:checked + label {
- font-weight: bold;
- background-color: #FFF;
- border-width: 1px;
- border-bottom: 1px solid #FFF;
- }
- .description .issuer input[type=radio] + label + input + label + select,
- .description .issuer input[type=radio] + label + select + input { display: none; }
- .description .issuer input[type=radio]:checked + label + input + label + select,
- .description .issuer input[type=radio]:checked + label + select + input {
- display: block; width: 100%;
- border: 1px solid black;
- background-color: #FFF;
- border-width: 0 1px 1px 1px;
- padding: .25ex .5ex;
- margin-top: -1px;
- }
- .description .issuer input[type=radio]:checked + label + input + label + select option { display: block;}
- .description span#issuer { width: 100%; height: 3em; padding: 1ex 2ex;}
+.prescription .therapy_dates span { min-width: 8em; margin: 0 .5ex;}
+
+.prescription .issuer { display: inline-block; width: 50%; padding: 0; padding-top: 0; margin-left: 50%;}
+.prescription .issuer label:first-of-type {
+ display: block;
+ position: relative;
+ width: 50%; left: -50%; top: 2.25em;
+ font-size: 1em;
+ text-align: right;
+ padding-right: 1ex;
+ }
+.prescription .issuer input[type=radio] + label:before { content: none; }
+.prescription .issuer input[type=radio] { display: none; }
+.prescription .issuer input[type=radio] + label {
+ display: inline-block;
+ width: 50%;
+ padding: .25ex 0; margin: 0;
+ text-align: center;
+ border: 1px solid black;
+}
+.prescription .issuer input[type=radio]:checked + label {
+ font-weight: bold;
+ background-color: #FFF;
+ border-width: 1px;
+ border-bottom: 1px solid #FFF;
+}
+.prescription .issuer input[type=radio] + label + input + label + select,
+.prescription .issuer input[type=radio] + label + select + input { display: none; }
+.prescription .issuer input[type=radio]:checked + label + input + label + select,
+.prescription .issuer input[type=radio]:checked + label + select + input {
+ display: block; width: 100%;
+ border: 1px solid black;
+ background-color: #FFF;
+ border-width: 0 1px 1px 1px;
+ padding: .25ex .5ex;
+ margin-top: -1px;
+}
+.prescription .issuer input[type=radio]:checked + label + input + label + select option { display: block;}
+.prescription span#issuer { width: 100%; height: 3em; padding: 1ex 2ex;}
.prescription .controls { width: 100%; }
.controls a.button,
<label for="indicator_reading">$(l10n indicator_reading)</label>
<span id="indicator_reading">${mpx[indicator_reading]}</span>
</p>
+</fieldset>
+
+<p class="therapy_dates">
+ <label>$(l10n therapy_dates):</label>
+ $(therapy_dates "$id" \
+ | while read date; do
+ printf '<span>%s</span>' "$date"
+ done
+ )
+</p>
+
<p class="issuer">
<label>$(l10n issuer)</label>
<span id="issuer">$mpx[issuer]</span>
</p>
-</fieldset>
-
<fieldset class="controls">
<a class="button" href="?p=prescriptions&edit=${mpx[prescription]}#${mpx[prescription]}">$(l10n edit)</a>
<a class="button" href="?p=therapy&id=${mpx[prescription]%.mpx}.tpy">$(l10n therapy)</a>