Sha256: 840e4ba6f7494361a129910e56f5e0028b5eff93972f88e79a634c287b9d8653
Contents?: true
Size: 1.44 KB
Versions: 110
Compression:
Stored size: 1.44 KB
Contents
<div class="govuk-error-summary {%- if params.classes %} {{ params.classes }}{% endif %}" {%- if params.disableAutoFocus !== undefined %} data-disable-auto-focus="{{ params.disableAutoFocus }}"{% endif %} {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %} data-module="govuk-error-summary"> {# Keep the role="alert" in a seperate child container to prevent a race condition between the focusing js at the alert, resulting in information getting missed in screen reader announcements #} <div role="alert"> <h2 class="govuk-error-summary__title"> {{ params.titleHtml | safe if params.titleHtml else params.titleText }} </h2> <div class="govuk-error-summary__body"> {% if caller or params.descriptionHtml or params.descriptionText %} <p> {{ caller() if caller else (params.descriptionHtml | safe if params.descriptionHtml else params.descriptionText) }} </p> {% endif %} <ul class="govuk-list govuk-error-summary__list"> {% for item in params.errorList %} <li> {% if item.href %} <a href="{{ item.href }}"{% for attribute, value in item.attributes %} {{attribute}}="{{value}}"{% endfor %}>{{ item.html | safe if item.html else item.text }}</a> {% else %} {{ item.html | safe if item.html else item.text }} {% endif %} </li> {% endfor %} </ul> </div> </div> </div>
Version data entries
110 entries across 110 versions & 1 rubygems