UNPKG

@formio-tmt/bootstrap

Version:

Bootstrap templates for Form.io forms

32 lines 1.43 kB
export default function(ctx) { var __t, __p = '', __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } __p += '<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n ' + ((__t = (ctx.sidebar)) == null ? '' : __t) + '\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea">\n <div class="breadcrumb wizard-page-container">\n <ol class="wizard-pages">\n '; ctx.pages.forEach(function(page, pageIndex) { ; __p += '\n <li id="' + ((__t = (page.key)) == null ? '' : __t) + '">\n <span title="' + ((__t = (page.title)) == null ? '' : __t) + '" class="mr-2 badge '; if (pageIndex === ctx.self.page) { ; __p += 'badge-primary'; } else { ; __p += 'badge-info'; } ; __p += ' wizard-page-label" ref="gotoPage">' + ((__t = (page.title)) == null ? '' : __t) + '</span>\n </li>\n '; }) ; __p += '\n </ol>\n <div class="wizard-add-page">\n <span title="' + ((__t = (ctx.t('Create Page'))) == null ? '' : __t) + '" class="mr-2 badge badge-success wizard-page-label" ref="addPage">\n <i class="' + ((__t = (ctx.iconClass('plus'))) == null ? '' : __t) + '"></i> ' + ((__t = (ctx.t('Page'))) == null ? '' : __t) + '\n </span>\n </div>\n </div>\n <div ref="form">\n ' + ((__t = (ctx.form)) == null ? '' : __t) + '\n </div>\n </div>\n</div>\n'; return __p }