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


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 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 />
      select#type(name="keywords", multiple="multiple")
        option(value='Free Weights') Free Weights
        option(value='Exercise Machine') Exercise Machines
        option(value='Bodyweight') Bodyweight
        option(value='Kettlebells') Kettlebells
        option(value='Cardio') Cardio
    li
      label(for="type") Alternatives<br />
    li
      label(for="datafields") Datafields<br />
      select#type(name="datafields", multiple="multiple")
        option(value='Reps') Reps
        option(value='Weight') Weight
        option(value='Time') Time
        option(value='Distance') Distance
    li
      input(type="submit", value="Create")