UNPKG

@formio-tmt/bootstrap

Version:

Bootstrap templates for Form.io forms

54 lines 2.62 kB
export default function(ctx) { var __t, __p = '', __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } __p += '<div class="panel panel-default form-builder-panel" ref="group-panel-' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '">\n <div class="panel-heading form-builder-group-header">\n <h5 class="panel-title">\n <button\n class="btn btn-block builder-group-button"\n type="button"\n data-toggle="collapse"\n data-target="#group-' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '"\n data-parent="#' + ((__t = (ctx.groupId)) == null ? '' : __t) + '"\n href="#group-' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '"\n ref="sidebar-anchor"\n >\n ' + ((__t = (ctx.t(ctx.group.title, { _userInput: true }))) == null ? '' : __t) + '\n </button>\n </h5>\n </div>\n <div\n id="group-' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '"\n class="panel-collapse collapse' + ((__t = (ctx.group.default ? ' in' : '')) == null ? '' : __t) + '"\n data-parent="#' + ((__t = (ctx.groupId)) == null ? '' : __t) + '"\n data-default="' + ((__t = (ctx.group.default)) == null ? '' : __t) + '"\n ref="sidebar-group"\n >\n <div id="group-container-' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '" class="panel-body no-drop" ref="sidebar-container">\n '; if (ctx.group.componentOrder.length || ctx.subgroups.length) { ; __p += '\n '; ctx.group.componentOrder.forEach(function(componentKey) { ; __p += '\n <span\n data-group="' + ((__t = (ctx.groupKey)) == null ? '' : __t) + '"\n data-key="' + ((__t = (ctx.group.components[componentKey].key)) == null ? '' : __t) + '"\n data-type="' + ((__t = (ctx.group.components[componentKey].schema.type)) == null ? '' : __t) + '"\n class="btn btn-primary btn-xs btn-block formcomponent drag-copy"\n >\n '; if (ctx.group.components[componentKey].icon) { ; __p += '\n <i class="' + ((__t = (ctx.iconClass(ctx.group.components[componentKey].icon))) == null ? '' : __t) + '" style="margin-right: 5px;"></i>\n '; } ; __p += '\n ' + ((__t = (ctx.t(ctx.group.components[componentKey].title, { _userInput: true }))) == null ? '' : __t) + '\n </span>\n '; }) ; __p += '\n ' + ((__t = (ctx.subgroups.join(''))) == null ? '' : __t) + '\n '; } else { ; __p += '\n <div>' + ((__t = (ctx.t('No Matches Found'))) == null ? '' : __t) + '</div>\n '; } ; __p += '\n </div>\n </div>\n</div>\n\n'; return __p }