Sha256: ca1515950757639f7af9f1a6b63fe13786b8da1d0962ddfa7deeb867c40c84f7

Contents?: true

Size: 1.57 KB

Versions: 19

Compression:

Stored size: 1.57 KB

Contents

<%
  component_helper = GovukPublishingComponents::Presenters::SinglePageNotificationButtonHelper.new(local_assigns)
  shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)

  wrapper_classes = %w(govuk-!-display-none-print)
  wrapper_classes << shared_helper.get_margin_bottom
%>
<% button_text = capture do %>
  <svg class="gem-c-single-page-notification-button__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" height="18" width="18" viewBox="0 0 459.334 459.334"><path fill="currentColor" d="M177.216 404.514c-.001.12-.009.239-.009.359 0 30.078 24.383 54.461 54.461 54.461s54.461-24.383 54.461-54.461c0-.12-.008-.239-.009-.359H175.216zM403.549 336.438l-49.015-72.002v-89.83c0-60.581-43.144-111.079-100.381-122.459V24.485C254.152 10.963 243.19 0 229.667 0s-24.485 10.963-24.485 24.485v27.663c-57.237 11.381-100.381 61.879-100.381 122.459v89.83l-49.015 72.002a24.76 24.76 0 0 0 20.468 38.693H383.08a24.761 24.761 0 0 0 20.469-38.694z"/></svg><span class="gem-c-single-page-notication-button__text"><%= component_helper.button_text %></span>
<% end %>
<%= tag.div class: wrapper_classes, data: { module: "gem-track-click"} do %>
  <%= tag.form class: component_helper.classes, action: "/email/subscriptions/single-page/new", method: "POST", data: component_helper.data do %>
    <input type="hidden" name="base_path" value="<%= component_helper.base_path %>">
    <%= content_tag(:button, button_text, {
      class: "govuk-body-s gem-c-single-page-notification-button__submit",
      type: "submit",
    }) %>
  <% end %>
<% end if component_helper.base_path %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
govuk_publishing_components-34.8.1 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.8.0 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.7.1 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.7.0 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.6.0 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.5.1 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.5.0 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.4.2 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.4.1 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.4.0 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.3.0 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.2.0 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.1.3 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.1.2 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.1.1 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.1.0 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-34.0.0 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-33.1.0 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb
govuk_publishing_components-33.0.0 app/views/govuk_publishing_components/components/_single_page_notification_button.html.erb