-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2087 from alphagov/edit-downtime-page-transition
Transition edit downtime and destroy downtime to use the design system
- Loading branch information
Showing
11 changed files
with
171 additions
and
55 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
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,19 @@ | ||
<% content_for :page_title, 'Remove downtime message' %> | ||
<% content_for :title, 'Remove downtime message' %> | ||
|
||
<div class="govuk-grid-column-two-thirds"> | ||
<%= render "govuk_publishing_components/components/lead_paragraph", { | ||
text: "Are you sure you want to remove the scheduled downtime message for #{@downtime.artefact.name}?", | ||
margin_bottom: 8 | ||
} %> | ||
|
||
<%= form_for @downtime, url: edition_downtime_path(@edition), html: { class: 'form well remove-top-margin', 'data-module': 'downtime-message' } do |f| %> | ||
<div class="govuk-button-group"> | ||
<%= render "govuk_publishing_components/components/button", { | ||
text: "Remove", | ||
destructive: true | ||
} %> | ||
<%= link_to "Cancel", downtimes_path, class: "govuk-link govuk-link--no-visited-state" %> | ||
</div> | ||
<% end %> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
<% content_for :page_title, 'Re-schedule downtime message' %> | ||
|
||
<ul class="breadcrumb"> | ||
<li class="crumb"><%= link_to 'Downtime', downtimes_path %></li> | ||
<li class="active"><%= @downtime.artefact.name %></li> | ||
</ul> | ||
<% content_for :page_title, 'Edit downtime message' %> | ||
<% content_for :title, 'Edit downtime message' %> | ||
<% content_for :title_context, @downtime.artefact.name %> | ||
<% unless @downtime.errors.empty? %> | ||
<% content_for :error_summary, render("shared/error_summary", { object: @downtime }) %> | ||
<% end %> | ||
|
||
<div class="page-title"> | ||
<h1> | ||
<span class="small"><%= @downtime.artefact.name %></span> | ||
Re-schedule downtime message | ||
</h1> | ||
</div> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<%= render "govuk_publishing_components/components/lead_paragraph", { | ||
text: "Downtime message appear on the service's start page one day before the downtime is due to occur.", | ||
margin_bottom: 6 | ||
} %> | ||
|
||
<%= form_for @downtime, url: edition_downtime_path(@edition), html: { class: 'form well remove-top-margin', 'data-module': 'downtime-message' } do |f| %> | ||
<%= render 'form', f: f %> | ||
<%= f.submit 'Re-schedule downtime message', class: 'js-submit btn btn-success' %> | ||
<%= f.submit 'Cancel downtime', class: 'add-left-margin btn btn-danger' %> | ||
<div class="govuk-button-group"> | ||
<%= render "govuk_publishing_components/components/button", { | ||
text: "Save", | ||
value: "save", | ||
name: "save" | ||
} %> | ||
|
||
<%= link_to "Cancel", downtimes_path, class: "govuk-link govuk-link--no-visited-state" %> | ||
<%= link_to "Remove", edition_destroy_downtime_path, class: "govuk-link remove-link" %> | ||
</div> | ||
<% end %> | ||
</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
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
Oops, something went wrong.