landmark-serve
Version:
Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose
20 lines (19 loc) • 642 B
text/jade
if !field.isValid
.alert.alert-danger Warning: Relationship field <strong>
else
- var refList = field.refList
.field.type-relationship
label.field-label= field.label
.field-ui
.field-message
input(type='hidden',
name=field.path,
id='field_' + field.path,
value=item[field.path],
data-ref-many=field.many ? 'true' : null,
data-ref-filters=field.filters,
data-ref-path=refList.path,
data-ref-singular=refList.singular,
data-ref-plural=refList.plural).ui-select2-ref
if field.note
.field-note!= field.note