Sha256: 554c365fd1bfb7d5ecabbdf1be71cb88b430533e91d7da69642702e5d2034545

Contents?: true

Size: 1.19 KB

Versions: 16

Compression:

Stored size: 1.19 KB

Contents

<div class="govuk-error-summary
  {%- if params.classes %} {{ params.classes }}{% endif %}" aria-labelledby="error-summary-title" role="alert"
  {%- if params.disableAutoFocus %} data-disable-auto-focus="true"{% endif %}
  {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %} data-module="govuk-error-summary">
  <h2 class="govuk-error-summary__title" id="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>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
govuk_publishing_components-32.1.0 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-32.0.0 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-31.2.0 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-31.1.2 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-31.1.1 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-31.1.0 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-31.0.0 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-30.7.3 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-30.7.2 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-30.7.1 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-30.7.0 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-30.6.1 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-30.6.0 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-30.5.2 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-30.5.1 node_modules/govuk-frontend/govuk/components/error-summary/template.njk
govuk_publishing_components-30.5.0 node_modules/govuk-frontend/govuk/components/error-summary/template.njk