landmark-serve
Version:
Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose
10 lines (9 loc) • 519 B
text/jade
.field.type-markdown(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false')
label.field-label= field.label
.field-ui(class='width-' + field.width)
if field.noedit
.field-value!= item.get(field.paths.html)
else
textarea(name=field.path, style='height: #{field.height}px').form-control.markdown= item.get(field.paths.md)
if field.note
.field-note!= field.note