UNPKG

@opencitylabs/bootstrap-italia

Version:

Bootstrap Italia templates for Form.io forms

30 lines 1.26 kB
export default function(ctx) { var __t, __p = '', __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } __p += '<fieldset class="it-page-section" id="section-' + ((__t = (ctx.key)) == null ? '' : __t) + '">\n <div class="cmp-card mt-2">\n <div class="card has-bkg-grey shadow-sm p-big">\n '; if (ctx.component.legend) { ; __p += '\n <div ref="header" class="' + ((__t = (ctx.component.collapsible ? 'formio-clickable card-header border-0 p-0 mb-lg-30' : 'card-header border-0 p-0 mb-lg-30')) == null ? '' : __t) + '">\n <div class="d-flex">\n <h2 class="title-xxlarge mb-1">\n ' + ((__t = (ctx.t(ctx.component.legend, { _userInput: true }))) == null ? '' : __t) + '\n </h2>\n </div>\n '; if (ctx.component.tooltip || ctx.tooltip) { ; __p += '\n <p class="subtitle-small mb-0">' + ((__t = (ctx.t(ctx.component.tooltip || ctx.tooltip))) == null ? '' : __t) + '</p>\n '; } ; __p += '\n </div>\n '; } ; __p += '\n '; if (!ctx.collapsed) { ; __p += '\n <div class="card p-3 p-lg-4 fieldset-body" ref="' + ((__t = (ctx.nestedKey)) == null ? '' : __t) + '">\n ' + ((__t = (ctx.children)) == null ? '' : __t) + '\n </div>\n '; } ; __p += '\n </div>\n </div>\n</fieldset>\n'; return __p }