move therapy add button into number field
[confetti] / templates / therapy.html.sh
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>