Browse Source

Update styling

pull/2673/head
Kat 2 years ago
parent
commit
9738e5b20c
  1. 8
      app/views/collection_resources/_collection_resource_summary_list.erb
  2. 2
      app/views/collection_resources/index.html.erb

8
app/views/collection_resources/_collection_resource_summary_list.erb

@ -1,3 +1,5 @@
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= govuk_summary_list do |summary_list| %> <%= govuk_summary_list do |summary_list| %>
<% mandatory_resources.each do |resource| %> <% mandatory_resources.each do |resource| %>
<% summary_list.with_row do |row| %> <% summary_list.with_row do |row| %>
@ -22,3 +24,9 @@
<% end %> <% end %>
<% end %> <% end %>
<% end %> <% end %>
<div class="govuk-!-margin-bottom-6">
<%= govuk_link_to "Add new #{mandatory_resources.first.log_type} #{text_year_range_format(mandatory_resources.first.year)} resource", href: "/" %>
</div>
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m">
</div>
</div>

2
app/views/collection_resources/index.html.erb

@ -11,7 +11,6 @@
Lettings <%= text_year_range_format(year) %> Lettings <%= text_year_range_format(year) %>
</h2> </h2>
<%= render partial: "collection_resource_summary_list", locals: { mandatory_resources: } %> <%= render partial: "collection_resource_summary_list", locals: { mandatory_resources: } %>
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m">
<% end %> <% end %>
<% @mandatory_sales_collection_resources_per_year.each do |year, mandatory_resources| %> <% @mandatory_sales_collection_resources_per_year.each do |year, mandatory_resources| %>
@ -19,5 +18,4 @@
Sales <%= text_year_range_format(year) %> Sales <%= text_year_range_format(year) %>
</h2> </h2>
<%= render partial: "collection_resource_summary_list", locals: { mandatory_resources: } %> <%= render partial: "collection_resource_summary_list", locals: { mandatory_resources: } %>
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--m">
<% end %> <% end %>

Loading…
Cancel
Save