UNPKG

landmark-serve

Version:

Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose

12 lines (11 loc) 817 B
.field.type-datetime(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= field.format(item, 'Do MMM YYYY, h:mm:ss a') else .form-row .col-sm-6: input(type='text', name=field.paths.date, value=field.format(item, 'YYYY-MM-DD'), placeholder='YYYY-MM-DD', autocomplete='off').form-control.ui-datepicker .col-sm-6: input(type='text', name=field.paths.time, value=field.format(item, 'h:mm:ss a'), placeholder='HH:MM:SS am/pm', autocomplete='off').form-control if field.note .col-sm-9.col-md-10.col-sm-offset-3.col-md-offset-2: .field-note!= field.note