@formio/uswds
Version:
US Web Design System templates for form.io
49 lines • 1.77 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default=function(ctx) {
var __t, __p = '', __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
__p += '<ul class="padding-0 usa-list--unstyled wizard-nav-container" id="' +
((__t = ( ctx.wizardKey )) == null ? '' : __t) +
'-nav">\n ';
if (ctx.buttons.next) { ;
__p += '\n <li>\n <button class="usa-button btn-wizard-nav-next" ref="' +
((__t = (ctx.wizardKey)) == null ? '' : __t) +
'-next" aria-label="' +
((__t = (ctx.t('next'))) == null ? '' : __t) +
' button. Click to go to the next tab">' +
((__t = (ctx.t('next'))) == null ? '' : __t) +
'</button>\n </li>\n ';
} ;
__p += '\n ';
if (ctx.buttons.submit) { ;
__p += '\n <li>\n <button class="usa-button btn-wizard-nav-submit" ref="' +
((__t = (ctx.wizardKey)) == null ? '' : __t) +
'-submit" aria-label="' +
((__t = (ctx.t('submit'))) == null ? '' : __t) +
' button. Click to submit the form">' +
((__t = (ctx.t('submit'))) == null ? '' : __t) +
'</button>\n </li>\n ';
} ;
__p += '\n ';
if (ctx.buttons.previous) { ;
__p += '\n <li>\n <button class="usa-button usa-button--outline btn-wizard-nav-previous" ref="' +
((__t = (ctx.wizardKey)) == null ? '' : __t) +
'-previous" aria-label="' +
((__t = (ctx.t('previous'))) == null ? '' : __t) +
' button. Click to go back to the previous tab">' +
((__t = (ctx.t('previous'))) == null ? '' : __t) +
'</button>\n </li>\n ';
} ;
__p += '\n ';
if (ctx.buttons.cancel) { ;
__p += '\n <li>\n <button class="usa-button usa-button--secondary btn-wizard-nav-cancel" ref="' +
((__t = (ctx.wizardKey)) == null ? '' : __t) +
'-cancel">' +
((__t = (ctx.t('cancel'))) == null ? '' : __t) +
'</button>\n </li>\n ';
} ;
__p += '\n</ul>\n';
return __p
}