mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 14:43:00 +00:00
add dynmic exercsie list, keywords(hardcoded), datafields(hardcoded), adding exercises from exercise list, and show hide for delete button.
This commit is contained in:
@@ -1,15 +1,26 @@
|
||||
extends ../layout
|
||||
|
||||
block additionalscripts
|
||||
script(src='/javascripts/workout.js')
|
||||
|
||||
block content
|
||||
h1 New workout
|
||||
p THis will be a dropdown to select exercises
|
||||
input#title(name="Exercise")
|
||||
button#addExercise(type="button") Add Exercise
|
||||
|
||||
h3 Exercises (dynamically loaded from database)
|
||||
ul#exerciselist
|
||||
|
||||
div#filters
|
||||
h3 Filters ( currently just placeholder )
|
||||
label Free Weights
|
||||
input#filter1(type="checkbox", value="Free Weights")
|
||||
|
||||
//button#addExercise(type="button") Add Exercise
|
||||
hr
|
||||
|
||||
form#newworkout(method="POST", action="/workouts")
|
||||
ul
|
||||
li
|
||||
label(for="title", value="UserID")<br />
|
||||
label(for="title", value="UserID") UserID
|
||||
input#title(name="userID", value=session.user._id)
|
||||
li
|
||||
label(for="datepicker", value="Date") workoutDate
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
extends ../layout
|
||||
|
||||
|
||||
block content
|
||||
h1= workout.title
|
||||
|
||||
|
||||
Reference in New Issue
Block a user