Sha256: aceef768697a63e01c889b84ab3501543422f05293428a16f16e01e6c3f90a32

Contents?: true

Size: 1.04 KB

Versions: 65

Compression:

Stored size: 1.04 KB

Contents

{% from "../button/macro.njk" import govukButton -%}

<div
  {%- if params.id %} id="{{ params.id }}"{% endif %} class="govuk-exit-this-page {%- if params.classes %} {{ params.classes }}{% endif %}" data-module="govuk-exit-this-page" {%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}
  {%- if params.activatedText %} data-i18n.activated="{{ params.activatedText | escape }}"{% endif %}
  {%- if params.timedOutText %} data-i18n.timed-out="{{ params.timedOutText | escape }}"{% endif %}
  {%- if params.pressTwoMoreTimesText %} data-i18n.press-two-more-times="{{ params.pressTwoMoreTimesText | escape }}"{% endif %}
  {%- if params.pressOneMoreTimeText %} data-i18n.press-one-more-time="{{ params.pressOneMoreTimeText | escape }}"{% endif %}
>
  {{- govukButton({
    html: params.html,
    text: params.text | default("Exit this page"),
    classes: "govuk-button--warning govuk-exit-this-page__button govuk-js-exit-this-page-button",
    href: params.redirectUrl | default("https://www.bbc.co.uk/weather")
  }) -}}
</div>

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
govuk_publishing_components-39.2.5 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-39.2.4 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-39.2.3 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-39.2.2 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-39.2.1 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-39.2.0 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-39.1.0 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-39.0.0 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-38.4.2 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-38.1.1 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-38.1.0 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-38.0.1 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-38.0.0 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-37.10.0 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-37.9.1 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-37.9.0 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-37.8.1 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-37.8.0 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-37.7.1 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk
govuk_publishing_components-37.7.0 node_modules/govuk-frontend/govuk/components/exit-this-page/template.njk