extends ../layout

block additionalscripts
    script(src='/javascripts/newexercisevalidation.js')

block content
  h1 New Exercise<p></p>

  form(id="newexercise", method="POST", action="/admin/exercises/new")
    ul
      li
        label(for="name") Exercise Name<br />
        input#name(name="name")
      li
        label(for="type") Exercise Type<br />
        select#type(name="type")
          option(value='notselected') Select One
          option(value='freeweights') Free Weights
          option(value='machine') Exercise Machines
          option(value='bodyweight') Bodyweight
          option(value='kettlebells') Kettlebells
          option(value='cardio') Cardio

      li
        label(for="type") Exercise Description<br />
        input#description(name="description", class="needsnumber")
      li
        label(for="type") Exercise Difficulty<br />
        input#difficulty(name="difficulty")
        i = 0
        - for (i ; i < 10; ++i) {
          marray =  "musclearray[" + i + "]"
          li
            label(for="type") Muscle data #{i} 
            input(name= marray, class="musclearray", id= marray) 
        - }
      li
        label(for="type") Keywords<br />
      li
        label(for="type") Alternatives<br />
      li
        label(for="type") Datafields<br />
      li
        input(type="submit", value="Create")