1. 21 Mar, 2018 8 commits
    • Ryan Herbert's avatar
      better date validation pattern · 8c653fdc
      Ryan Herbert authored
      8c653fdc
    • Ryan Herbert's avatar
      set forms remove spaces from labels · 0102c147
      Ryan Herbert authored
      0102c147
    • Ryan Herbert's avatar
      sample_set form input styling · 547521f5
      Ryan Herbert authored
      make the inputs look a little bit nicer with a little bit of css from
      bootstrap
      547521f5
    • Ryan Herbert's avatar
      set form field sizing · ee8dc084
      Ryan Herbert authored
      reduces the size of fields in form to save more space.
      ee8dc084
    • Ryan Herbert's avatar
      sample_set HTML5 validation · e0aed093
      Ryan Herbert authored
      Although we do have server-side validation (and still need it to prevent
      tampering with forms or even the use of outdated browsers),  this will
      serve two purposes:
      1) alleviate the server slightly
      2) have a faster response time for users
      
      so win-win :).
      e0aed093
    • Ryan Herbert's avatar
      display set forms inline · a78d3792
      Ryan Herbert authored
      makes better use of space for adding multiple patients/runs/sets in a
      single form.
      a78d3792
    • Ryan Herbert's avatar
      partial forms fix key error on edit · ad351e4b
      Ryan Herbert authored
      when editing a set, the error key is not present in the patient/run/set,
      so we needed to manage that case
      ad351e4b
    • Ryan Herbert's avatar
      generic set add/edit form · cfd9d6ed
      Ryan Herbert authored
      moves the new patient/form and patient/submit routes to the sample_set
      controller and removes any add/edit routes from all set controllers.
      The same goes for the templates.
      
      Also allows the inclusion of different types of sets in a single form.
      
      For this, the sample_set/form.html template includes patials for each
      set type.
      
      See #2878
      
      One form to rule them all, one form the find them, one form to bring
      them all, and in the template bind them.
      cfd9d6ed