@formio-tmt/bootstrap
Version:
Bootstrap templates for Form.io forms
62 lines • 2.99 kB
JavaScript
export default function(ctx) {
var __t, __p = '', __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
__p += '<div class="card form-builder-panel" ref="group-panel-' +
((__t = (ctx.groupKey)) == null ? '' : __t) +
'">\n <div class="card-header form-builder-group-header" id="heading-' +
((__t = (ctx.groupKey)) == null ? '' : __t) +
'">\n <h5 class="mb-0 mt-0">\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 aria-expanded="' +
((__t = (ctx.group.default)) == null ? '' : __t) +
'"\n aria-controls="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="collapse ' +
((__t = (ctx.group.default ? ' show' : '')) == null ? '' : __t) +
'"\n data-parent="#' +
((__t = (ctx.groupId)) == null ? '' : __t) +
'"\n data-default="' +
((__t = (ctx.group.default)) == null ? '' : __t) +
'"\n aria-labelledby="heading-' +
((__t = (ctx.groupKey)) == null ? '' : __t) +
'"\n ref="sidebar-group"\n >\n <div id="group-container-' +
((__t = (ctx.groupKey)) == null ? '' : __t) +
'" class="card-body no-drop p-2" ref="sidebar-container">\n ';
if (ctx.group.componentOrder.length || ctx.subgroups.length) { ;
__p += '\n ';
!ctx.group.componentOrder || ctx.group.componentOrder.forEach(function(componentKey) { ;
__p += '\n <span\n ref="sidebar-component"\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-sm btn-block formcomponent drag-copy"\n tabindex="' +
((__t = (ctx.keyboardActionsEnabled ? -1 : 0)) == null ? '' : __t) +
'"\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';
return __p
}