Skip to content

Commit

Permalink
Add div class to fix layout to bottom tab section
Browse files Browse the repository at this point in the history
  • Loading branch information
ellohez committed Oct 15, 2024
1 parent 844f51a commit 7f760d5
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions app/views/editions/secondary_nav_tabs/_unpublish.html.erb
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
<%@edition= @resource %>
<%= header_for("Unpublish") %>
<div class="govuk-grid-column-two-thirds">
<% @edition = @resource %>
<%= header_for("Unpublish") %>
<%= render "govuk_publishing_components/components/inset_text", {
text: "If you unpublish a page from GOV.UK it cannot be undone."
} %>
<%= form_for @edition, url: confirm_unpublish_edition_path, method: "get" do |f| %>
<%= render "govuk_publishing_components/components/input", {
label: {
text: "Redirect to URL",
},
id: "redirect_url",
name: "redirect_url",
value: params[:redirect_url],
hint:"For example: https://www.gov.uk/redirect-to-replacement-page",
heading_level: 3,
heading_size: "s",
error_items: errors_for(f.object.errors,:redirect_url, use_full_message: false)
<%= render "govuk_publishing_components/components/inset_text", {
text: "If you unpublish a page from GOV.UK it cannot be undone."
} %>
<div class="govuk-button-group">
<%= render("govuk_publishing_components/components/button", {
text: "Continue",
type: "submit",
}) %>
</div>
<% end %>
<%= form_for @edition, url: confirm_unpublish_edition_path, method: "get" do |f| %>
<%= render "govuk_publishing_components/components/input", {
label: {
text: "Redirect to URL",
},
id: "redirect_url",
name: "redirect_url",
value: params[:redirect_url],
hint: "For example: https://www.gov.uk/redirect-to-replacement-page",
heading_level: 3,
heading_size: "s",
error_items: errors_for(f.object.errors, :redirect_url, use_full_message: false)
} %>
<div class="govuk-button-group">
<%= render("govuk_publishing_components/components/button", {
text: "Continue",
type: "submit",
}) %>
</div>
<% end %>
</div>

0 comments on commit 7f760d5

Please sign in to comment.