move therapy add button into number field
authorpaul <paul@plutz.net>
Fri, 8 Apr 2016 14:16:12 +0000 (14:16 +0000)
committerpaul <paul@plutz.net>
Fri, 8 Apr 2016 14:16:12 +0000 (14:16 +0000)
svn path=/trunk/; revision=95

templates/therapy.css.sh
templates/therapy.html.sh

index 6b17f48..d6a0135 100755 (executable)
@@ -173,7 +173,9 @@ label.heading > span.no {
 .tab > .therapist { width: 40%; }
 .tab > .signature { width: 10%; }
 .tab > .signature > button { display: inline-block; margin: 0; }
-fieldset.tab > button[type=submit] { width: 5%; text-align: center; margin-left: 5%;}
+/* fieldset.tab > button[type=submit] { width: 5%; text-align: center; margin-left: 5%;} */
+fieldset.tab > button[type=submit] { height: 2em; color: #FFF; font-weight: bold;}
+fieldset.tab > button[type=submit]::first-letter { font-size: 1.75em;}
 
 .signature > button[value=pos],
 .signature > button[value=neg] {
index 0b3bfbe..fd73e52 100755 (executable)
@@ -103,10 +103,10 @@ therapy_sessions(){
 
 cat <<EOF
   <fieldset class="tab">
-    <span class=no>…</span><!--
+    <button class=no type=submit name=new_session value=$sid>+</button><!--
  --><input class=date name=${sid}_date value="" placeholder="$(l10n date)" /><!--
  --><input class=therapist name=${sid}_therapist value="" placeholder="$(l10n therapist)" /><!--
- --><button type=submit name=new_session value=$sid>+</button></span>
+ --><span class=signature><span></span>
     <input type=hidden name="${sid}_note1" value="">
   </fieldset>
 EOF
@@ -229,13 +229,13 @@ cat <<EOF
    data.value = image_serialize
   }
 
-  window.addEventListener( 'mouseup', function() { drawstop() } )
-  canvas.addEventListener( 'mousedown', function(e) { drawstart(e.clientX, e.clientY) } )
-  canvas.addEventListener( 'mousemove', function(e) { circle(e.clientX, e.clientY)    } )
+  window.addEventListener( 'mouseup',   function()   { drawstop() } )
+  canvas.addEventListener( 'mousedown', function(e)  { drawstart(e.clientX, e.clientY) } )
+  canvas.addEventListener( 'mousemove', function(e)  {    circle(e.clientX, e.clientY) } )
 
-  window.addEventListener( 'touchend', function() { drawstop() } )
+  window.addEventListener( 'touchend',   function()  { drawstop() } )
   canvas.addEventListener( 'touchstart', function(e) { drawstart(e.touches[0].clientX, e.touches[0].clientY) } )
-  canvas.addEventListener( 'touchmove', function(e) { circle(e.touches[0].clientX, e.touches[0].clientY)    } )
+  canvas.addEventListener( 'touchmove',  function(e) {    circle(e.touches[0].clientX, e.touches[0].clientY) } )
 
   --></script>
 </form>