Skip to content

Commit

Permalink
Merge pull request #2039 from alphagov/add-downtime-update-view
Browse files Browse the repository at this point in the history
Add downtime update view
  • Loading branch information
mtaylorgds authored Feb 2, 2024
2 parents 68791d8 + d529c6d commit b725b83
Showing 1 changed file with 46 additions and 52 deletions.
98 changes: 46 additions & 52 deletions app/views/downtimes/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,65 +4,59 @@

<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<%= render "govuk_publishing_components/components/fieldset", {
legend_text: "From",
heading_size: "l"
} do %>
<div class="govuk-grid-row govuk-!-padding-left-3">
<div class="govuk-grid-column-one-half">
<%= render "govuk_publishing_components/components/fieldset", {
legend_text: "Date",
heading_size: "m"
} do %>
<%= render "govuk_publishing_components/components/date_input", {
hint: "For example, 01 08 2022",
} %>
<% end %>
</div>
<div class="govuk-grid-column-one-half">
<%= render "govuk_publishing_components/components/fieldset", {
legend_text: "Time",
heading_size: "m"
} do %>
<%= render "time_input", {
hint: "For example, 9:30 or 19:30"
} %>
<% end %>
</div>
<div class="govuk-grid-row">
<div class="govuk-grid-column-one-half">
<%= render "govuk_publishing_components/components/fieldset", {
legend_text: "From date",
heading_size: "m"
} do %>
<%= render "govuk_publishing_components/components/date_input", {
hint: "For example, 01 08 2022",
name: "from-date"
} %>
<% end %>
</div>
<% end %>
<div class="govuk-grid-column-one-half">
<%= render "govuk_publishing_components/components/fieldset", {
legend_text: "From time",
heading_size: "m"
} do %>
<%= render "time_input", {
hint: "For example, 9:30 or 19:30",
name: "from-time"
} %>
<% end %>
</div>
</div>
</div>
</div>

<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<%= render "govuk_publishing_components/components/fieldset", {
legend_text: "To",
heading_size: "l"
} do %>
<div class="govuk-grid-row govuk-!-padding-left-3">
<div class="govuk-grid-column-one-half">
<%= render "govuk_publishing_components/components/fieldset", {
legend_text: "Date",
heading_size: "m"
} do %>
<%= render "govuk_publishing_components/components/date_input", {
hint: "For example, 01 08 2022",
} %>
<% end %>
</div>
<div class="govuk-grid-column-one-half">
<%= render "govuk_publishing_components/components/fieldset", {
legend_text: "Time",
heading_size: "m"
} do %>
<%= render "time_input", {
hint: "For example, 9:30 or 19:30"
} %>
<% end %>
</div>
<div class="govuk-grid-row">
<div class="govuk-grid-column-one-half">
<%= render "govuk_publishing_components/components/fieldset", {
legend_text: "To date",
heading_size: "m"
} do %>
<%= render "govuk_publishing_components/components/date_input", {
hint: "For example, 01 08 2022",
name: "to-date"
} %>
<% end %>
</div>
<div class="govuk-grid-column-one-half">
<%= render "govuk_publishing_components/components/fieldset", {
legend_text: "To time",
heading_size: "m"
} do %>
<%= render "time_input", {
hint: "For example, 9:30 or 19:30",
name: "to-time"
} %>
<% end %>
</div>
<% end %>
</div>
</div>
</div>

Expand Down

0 comments on commit b725b83

Please sign in to comment.