@formio/bootstrap
Version:
Bootstrap templates for Form.io forms
28 lines • 928 B
JavaScript
export default function(ctx) {
var __t, __p = '', __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
__p += '<p>' +
((__t = (ctx.t('error'))) == null ? '' : __t) +
'\n ';
if (ctx.options.vpat) { ;
__p += '\n <span ref="errorTooltip" class="' +
((__t = (ctx.iconClass('question-sign'))) == null ? '' : __t) +
'" tabindex="0"></span>\n ';
} ;
__p += '\n</p>\n<ul>\n ';
ctx.errors.forEach(function(err) { ;
__p += '\n <li>\n <span data-component-key="' +
((__t = (err.keyOrPath)) == null ? '' : __t) +
'" ref="errorRef" tabIndex="0" role="link">\n ' +
((__t = (err.message)) == null ? '' : __t) +
'\n ';
if (err.errorPageTitle) { ;
__p += '\n <span class="visually-hidden">. Click to navigate to the component within ' +
((__t = ( err.errorPageTitle )) == null ? '' : __t) +
' </span>\n ';
} ;
__p += '\n </span>\n </li>\n ';
}) ;
__p += '\n</ul>\n';
return __p
}