Browse Source

Remove redundant grid rows

pull/789/head
Paul Robert Lloyd 3 years ago
parent
commit
bc0faa2db5
  1. 2
      app/views/schemes/check_answers.html.erb
  2. 6
      app/views/schemes/show.html.erb

2
app/views/schemes/check_answers.html.erb

@ -2,7 +2,6 @@
<%= render partial: "organisations/headings", locals: { main: "Check your changes before creating this scheme", sub: @scheme.service_name } %>
<%= form_for(@scheme, as: :scheme, method: :patch) do |f| %>
<div class="govuk-grid-row">
<%= f.govuk_error_summary %>
<%= govuk_tabs(title: "Check your answers before creating this scheme") do |component| %>
<% component.tab(label: "Scheme") do %>
@ -73,7 +72,6 @@
<%= govuk_button_link_to "Add a location", new_location_path(id: @scheme.id), secondary: true %>
<% end %>
<% end %>
</div>
<%= f.hidden_field :page, value: "check-answers" %>
<%= f.hidden_field :confirmed, value: "true" %>
<% button_label = @scheme.confirmed? ? "Save" : "Create scheme" %>

6
app/views/schemes/show.html.erb

@ -14,8 +14,7 @@
<h2 class="govuk-visually-hidden">Scheme</h2>
<div class="govuk-grid-row">
<%= govuk_summary_list do |summary_list| %>
<%= govuk_summary_list do |summary_list| %>
<% @scheme.display_attributes.each do |attr| %>
<% next if current_user.data_coordinator? && attr[:name] == ("Housing stock owned by") %>
<%= summary_list.row do |row| %>
@ -24,5 +23,4 @@
<% row.action(text: "Change", href: scheme_edit_name_path(scheme_id: @scheme.id)) if attr[:edit] %>
<% end %>
<% end %>
<% end %>
</div>
<% end %>

Loading…
Cancel
Save