UNPKG

@formio/bootstrap

Version:

Bootstrap templates for Form.io forms

55 lines 1.96 kB
Object.defineProperty(exports, "__esModule", { value: true }); exports.default=function(ctx) { var __t, __p = '', __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } __p += '<div class="field-wrapper flex-fill\n ' + ((__t = (ctx.isRightPosition ? 'field-wrapper--reverse' : '')) == null ? '' : __t) + '">\n '; if (!ctx.label.hidden) { ; __p += '\n <div class="field-label\n ' + ((__t = (ctx.isRightAlign ? 'field-label--right' : '')) == null ? '' : __t) + '"\n style="' + ((__t = (ctx.labelStyles)) == null ? '' : __t) + '">\n ' + ((__t = ( ctx.labelMarkup )) == null ? '' : __t) + '\n </div>\n '; } ; __p += '\n\n '; if (ctx.label.hidden && ctx.label.className && ctx.component.validate.required) { ; __p += '\n <div class="field-label\n ' + ((__t = (ctx.isRightAlign ? 'field-label--right' : '')) == null ? '' : __t) + '"\n style="' + ((__t = (ctx.labelStyles)) == null ? '' : __t) + '">\n <label class="' + ((__t = (ctx.label.className)) == null ? '' : __t) + '"></label>\n </div>\n '; } ; __p += '\n\n <div class="field-content" style="' + ((__t = (ctx.contentStyles)) == null ? '' : __t) + '">\n ' + ((__t = (ctx.element)) == null ? '' : __t) + '\n '; if (!ctx.isRightPosition && ctx.isRightAlign) { ; __p += '\n '; if (ctx.component.description) { ; __p += '\n <div class="form-text text-muted">' + ((__t = (ctx.t(ctx.component.description, { _userInput: true }))) == null ? '' : __t) + '</div>\n '; } ; __p += '\n <div ref="messageContainer" class="formio-errors invalid-feedback"></div>\n '; } ; __p += '\n </div>\n</div>\n'; if (ctx.isRightPosition || !ctx.isRightAlign) { ; __p += '\n '; if (ctx.component.description) { ; __p += '\n <div class="form-text text-muted">' + ((__t = (ctx.t(ctx.component.description, { _userInput: true }))) == null ? '' : __t) + '</div>\n '; } ; __p += '\n'; } ; __p += '\n'; return __p }