-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add confirmation page for finder facets
Introduce page to confirm changes to the facets of a finder.
- Loading branch information
1 parent
76bdb10
commit 1eae04c
Showing
4 changed files
with
56 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<% content_for :breadcrumbs do %> | ||
<%= render "govuk_publishing_components/components/breadcrumbs", { | ||
collapse_on_mobile: true, | ||
breadcrumbs: [ | ||
{ | ||
title: "All finders", | ||
url: root_path | ||
}, | ||
{ | ||
title: "#{current_format.title} finder", | ||
url: "/admin/#{current_format.admin_slug}" | ||
}, | ||
{ | ||
title: "Request change", | ||
url: "/admin/facets/#{current_format.admin_slug}" | ||
}, | ||
{ | ||
title: "Check changes", | ||
url: request.original_url | ||
} | ||
] | ||
} %> | ||
<% end %> | ||
<% content_for :page_title, "Edit #{current_format.title} finder" %> | ||
<% content_for :title, "Check your changes before submitting" %> | ||
<% content_for :context, "#{current_format.title} finder" %> | ||
|
||
|
||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds govuk-body govuk-!-margin-top-8"> | ||
<%= render "facets_summary_card", { | ||
schema: @current_format.finder_schema.schema, | ||
} %> | ||
|
||
<p class="govuk-body govuk-body govuk-!-margin-top-7"> | ||
By submitting you are confirming that these changes are required to the specialist finder. | ||
</p> | ||
|
||
<div class="govuk-button-group govuk-!-margin-top-7"> | ||
<%= form_tag "/admin/zendesk/#{current_format.admin_slug}", method: 'post' do %> | ||
<%= hidden_field_tag :proposed_schema, JSON.pretty_generate(@proposed_schema) %> | ||
<%= render "govuk_publishing_components/components/button", { | ||
text: "Submit changes" | ||
} %> | ||
<% end %> | ||
|
||
<%= link_to("Cancel", "/admin/#{current_format.admin_slug}", class: "govuk-link govuk-link--no-visited-state") %> | ||
</div> | ||
</div> | ||
</div> |
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