Sha256: 49db534d0c63520743496208d08c7210fa7090a9d41c90a94f286364f42ee2d9

Contents?: true

Size: 844 Bytes

Versions: 102

Compression:

Stored size: 844 Bytes

Contents

<fieldset class="govuk-fieldset
  {%- if params.classes %} {{ params.classes }}{% endif %}"
  {%- if params.describedBy %} aria-describedby="{{ params.describedBy }}"{% endif %}
  {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
  {% if params.legend.html or params.legend.text %}
  <legend class="govuk-fieldset__legend {%- if params.legend.classes %} {{ params.legend.classes }}{% endif %}">
  {%- if params.legend.isPageHeading %}
    <h1 class="govuk-fieldset__heading">
      {{ params.legend.html | safe if params.legend.html else params.legend.text }}
    </h1>
  {% else %}
    {{ params.legend.html | safe if params.legend.html else params.legend.text }}
  {% endif -%}
  </legend>
  {% endif %}
{{ caller() if caller }} {#- if statement allows usage of `call` to be optional -#}
</fieldset>

Version data entries

102 entries across 102 versions & 2 rubygems

Version Path
govuk_publishing_components-16.10.1 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.10.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.9.2 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.9.1 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.9.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.8.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.7.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.6.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.5.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.4.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.3.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.2.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.1.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-16.0.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-15.3.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-15.2.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-15.1.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-15.0.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-14.0.0 node_modules/govuk-frontend/components/fieldset/template.njk
govuk_publishing_components-13.8.1 node_modules/govuk-frontend/components/fieldset/template.njk