UNPKG

@formio-tmt/bootstrap

Version:

Bootstrap templates for Form.io forms

32 lines 1.24 kB
export default function(ctx) { var __t, __p = '', __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } __p += '<nav aria-label="Wizard navigation" id="' + ((__t = ( ctx.wizardKey )) == null ? '' : __t) + '-header" ref="' + ((__t = (ctx.wizardKey)) == null ? '' : __t) + '-header">\n <ul class="pagination" role="tablist">\n '; ctx.panels.forEach(function(panel, index) { ; __p += '\n <li class="page-item' + ((__t = (ctx.currentPage === index ? ' active' : '')) == null ? '' : __t) + '" style="cursor: pointer;">\n <button tabindex="0" data-index="' + ((__t = (index)) == null ? '' : __t) + '" role="tab" class="page-link" ref="' + ((__t = (ctx.wizardKey)) == null ? '' : __t) + '-link">\n ' + ((__t = (ctx.t(panel.title, { _userInput: true }))) == null ? '' : __t) + '\n '; if (panel.tooltip && ctx.currentPage === index) { ; __p += '\n <i ref="' + ((__t = (ctx.wizardKey)) == null ? '' : __t) + '-tooltip" class="' + ((__t = (ctx.iconClass('question-sign'))) == null ? '' : __t) + ' text-muted" data-tooltip="' + ((__t = (panel.tooltip)) == null ? '' : __t) + '"></i>\n '; } ; __p += '\n </button>\n </li>\n '; }) ; __p += '\n </ul>\n</nav>\n'; return __p }