UNPKG

@formio-tmt/bootstrap

Version:

Bootstrap templates for Form.io forms

32 lines (31 loc) 913 B
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'; 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 class="help-block">' + ((__t = (ctx.t(ctx.component.description, { _userInput: true }))) == null ? '' : __t) + '</div>\n'; } ; __p += '\n'; return __p }