landmark-serve
Version:
Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose
14 lines (12 loc) • 696 B
text/jade
.field.type-email(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', data-gravatar=field.options.displayGravatar ? 'true' : 'false')
label.field-label= field.label
- var value = field.format(item)
.field-ui(class='width-' + field.width)
if field.noedit
.field-value= value
else
input(type='text', name=field.path, value=value, autocomplete='off').form-control
if field.note
.field-note!= field.note
if field.options.displayGravatar
img(src=field.gravatarUrl(item,100), style="margin-top:10px").img-thumbnail.img-gravatar