]> git.plutz.net Git - confetti/blobdiff - templates/prescriptions.css.sh
allow additional remedies to be prescribed
[confetti] / templates / prescriptions.css.sh
index 49db4976bcad9a89bf2c4083791a9a31943cd4bb..9d1baf8fe6e74c744e361cb1fdc96e5829c37a8a 100755 (executable)
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
 
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
 
-. ${0%/*}/attendees.css.sh
+. ${0%/*}/cards.css.sh
 
 cat <<EOF
 /**/
 
 cat <<EOF
 /**/
+body {padding-bottom: 3em; }
 
 .prescription {
   display: inline-block;
 
 .prescription {
   display: inline-block;
@@ -29,6 +30,7 @@ cat <<EOF
   margin: 1em -1% 0 2%; padding: 0;
   border: 1px solid #888;
   overflow: hidden;
   margin: 1em -1% 0 2%; padding: 0;
   border: 1px solid #888;
   overflow: hidden;
+  vertical-align: top;
 }
 form.prescription { padding-top: 1ex;}
 
 }
 form.prescription { padding-top: 1ex;}
 
@@ -210,19 +212,31 @@ input[name=presctype][value^=altpractition]:checked  ~ fieldset,
 .prescription .description { width: 100%; position: relative;}
   .description * { margin-right: -.625ex; vertical-align: top; }
   .description label {vertical-align: bottom;}
 .prescription .description { width: 100%; position: relative;}
   .description * { margin-right: -.625ex; vertical-align: top; }
   .description label {vertical-align: bottom;}
-  .description label[for=quantity1],
-  .description label[for=remidy1],
-  .description label[for=quantity_weekly1] {display: none;}
 
   .description label[for=quantity] { width: 20%;}
 
   .description label[for=quantity] { width: 20%;}
-  .description #quantity,
-  .description #quantity1 { width: 20%;  height: 3em; text-align: center;}
   .description label[for=remidy] { width: 60%; }
   .description label[for=remidy] { width: 60%; }
-  .description #remidy,
-  .description #remidy1 { width: 60%; height: 3em;}
   .description label[for=quantity_weekly] { width: 20%;}
   .description label[for=quantity_weekly] { width: 20%;}
+  .description #quantity,
+  .description .quantity { width: 20%;  height: 3em; text-align: center;}
+  .description #remidy,
+  .description .remidy { width: 60%; height: 3em;}
   .description #quantity_weekly,
   .description #quantity_weekly,
-  .description #quantity_weekly1 { width: 20%; height: 3em; text-align: center;}
+  .description .quantity_weekly { width: 20%; height: 3em; text-align: center;}
+
+  .description input[type=checkbox] { display: none; }
+  .description input[type=checkbox] + p { display: none; }
+  .description input:checked + p { display: inline-block; }
+  .description input:checked + p + input { display: block;}
+  .description input:checked + p + input:after {
+     display: block; width: 3ex;
+     background-color: #FFF;
+     border: 1px solid black;
+     margin-top: .25em;
+     text-align: center;
+     content: '+';
+  }
+  .description input:checked + p + input:checked,
+  .description input:checked { display: none; }
 
   .description .indicator_codes {display: inline-block; width: 20%; padding: 0; padding-top: 1.5ex;}
   .description label[for=indicator],
 
   .description .indicator_codes {display: inline-block; width: 20%; padding: 0; padding-top: 1.5ex;}
   .description label[for=indicator],