-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update button to skip the govuk-account
The single page notification button component, by default, enforces creating/signing in to a gov.uk account. It has a default form action of "/email/subscriptions/single-page/new". Passing in the optional paramater `skip_account` sets a form action of "/email-signup" which does not enforce the gov.uk account See govuk_publishing_components/presenters/single_page_notification_button_helper.rb#L63-L69
- Loading branch information
Showing
3 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
<% skip_account = skip_account || "false" %> | ||
|
||
<%= render 'govuk_publishing_components/components/single_page_notification_button', { | ||
base_path: @content_item.base_path, | ||
js_enhancement: @has_govuk_account, | ||
margin_bottom: 6, | ||
button_location: "top", | ||
skip_account: skip_account, | ||
} if @content_item.has_single_page_notifications? %> |