mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 14:43:00 +00:00
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
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") |