mirror of
https://github.com/sstent/node.git
synced 2026-01-26 07:02:31 +00:00
added form2js, and mongodb
This commit is contained in:
@@ -5,34 +5,25 @@
|
||||
include userbar
|
||||
|
||||
div
|
||||
table
|
||||
thead
|
||||
- each itemfk in fieldkeys
|
||||
th= itemfk
|
||||
tbody
|
||||
-for (var id in items)
|
||||
- var item = items[id]
|
||||
tr
|
||||
- each itemf in fieldkeys
|
||||
td= item[itemf]
|
||||
input(type='button', class='AddNeut', value='Add note Field', data-field='note_area', data-area='note_', data-limit='0', data-jsontag='activity.note')
|
||||
input(type='button', class='AddNeut', value='Add exercise Field', data-field='exercise_area', data-area='exercise_', data-limit='0',data-jsontag='activity.exercise')
|
||||
input(type='submit', id='save', value='Save')
|
||||
|
||||
ul#employees
|
||||
|
||||
form#myForm
|
||||
ol(id='note_area')
|
||||
li(class='note')
|
||||
input(type='text', name='note_1', value='note')
|
||||
li(class='note_T', style='display: none')
|
||||
label Note
|
||||
input(type='text', name='activity.note[]', value='Note', disabled='disabled')
|
||||
a(style='cursor:pointer;color:blue;', onclick='this.parentNode.parentNode.removeChild(this.parentNode);') Remove Field
|
||||
ol(id='exercise_area')
|
||||
li(class='exercise')
|
||||
input(type='text', name='exercise_1, value='exercise')
|
||||
a(style='cursor:pointer;color:blue;', onclick='this.parentNode.parentNode.removeChild(this.parentNode);') Remove Field
|
||||
li(id='exercise_target')
|
||||
input(type='button', class='AddNeut', value='Add note Field', data-field='note_area', data-area='note_', data-limit='0' )
|
||||
input(type='button', class='AddNeut', value='Add exercise Field', data-field='exercise_area', data-area='exercise_', data-limit='0' )
|
||||
input(type='submit', id='save', value='Save')
|
||||
|
||||
li(class='exercise_template')
|
||||
input(type='text', name='exercise_1, value='exercise')
|
||||
a(style='cursor:pointer;color:blue;', onclick='this.parentNode.parentNode.removeChild(this.parentNode);') Remove Field
|
||||
|
||||
li(class='exercise_T', style='display: none')
|
||||
label Exercise
|
||||
input(type='text', name='activity.exercise[].name', value='Name', disabled='disabled')
|
||||
input(type='text', name='activity.exercise[].sets', value='Sets', disabled='disabled', class='numericonly')
|
||||
input(type='text', name='activity.exercise[].reps', value='Reps', disabled='disabled')
|
||||
input(type='text', name='activity.exercise[x].weight', value='Weight', disabled='disabled')
|
||||
a(style='cursor:pointer;color:blue;', onclick='this.parentNode.parentNode.removeChild(this.parentNode);') Remove Field
|
||||
ul#employees
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user