UNPKG

@formio/bootstrap

Version:

Bootstrap templates for Form.io forms

36 lines (35 loc) 1.04 kB
export default function(ctx) { var __t, __p = '', __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } if (!ctx.label.hidden && ctx.label.labelPosition !== 'bottom') { ; __p += '\n ' + ((__t = ( ctx.labelMarkup )) == null ? '' : __t) + '\n'; } ; __p += '\n\n'; if (ctx.label.hidden && ctx.label.className && ctx.component.validate.required) { ; __p += '\n <label class="' + ((__t = (ctx.label.className)) == null ? '' : __t) + '"></label>\n'; } ; __p += '\n\n' + ((__t = (ctx.element)) == null ? '' : __t) + '\n\n'; if (!ctx.label.hidden && ctx.label.labelPosition === 'bottom') { ; __p += '\n ' + ((__t = ( ctx.labelMarkup )) == null ? '' : __t) + '\n'; } ; __p += '\n'; if (ctx.component.description) { ; __p += '\n <div id="d-' + ((__t = (ctx.instance.id)) == null ? '' : __t) + '-' + ((__t = (ctx.component.key)) == null ? '' : __t) + '" class="form-text text-muted">' + ((__t = (ctx.t(ctx.component.description, { _userInput: true }))) == null ? '' : __t) + '</div>\n'; } ; __p += '\n'; return __p }