UNPKG

@formio/bootstrap

Version:

Bootstrap templates for Form.io forms

26 lines 873 B
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) + '</p>\n<ul>\n '; ctx.errors.forEach(function(err) { ; __p += '\n <li data-component-key="' + ((__t = (err.keyOrPath)) == null ? '' : __t) + '" aria-label="' + ((__t = (err.message)) == null ? '' : __t) + '. ' + ((__t = (ctx.t('errorsListNavigationMessage'))) == null ? '' : __t) + '"\n ref="errorRef" tabIndex="0" , style="cursor:pointer;"><span>' + ((__t = (err.message)) == null ? '' : __t) + '\n '; if (err.errorPageTitle) { ; __p += '\n <span class="sr-only">. Click to navigate to the component within ' + ((__t = ( err.errorPageTitle )) == null ? '' : __t) + ' </span>\n '; } ; __p += '\n </span>\n </li>\n '; }) ; __p += '\n</ul>'; return __p }