extends ../layout
block additionalscripts
script(src='/javascripts/newexercisevalidation.js')
block content
h1 New Exercise
form(id="newexercise", method="POST", action="/admin/exercises/new")
ul
li
label(for="name") Exercise Name
input#name(name="name")
li
label(for="type") Exercise Type
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
input#description(name="description", class="needsnumber")
li
label(for="type") Exercise Difficulty
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
li
label(for="type") Alternatives
li
label(for="type") Datafields
li
input(type="submit", value="Create")