Browse Source

feat: always scale locations list by 2/3, not just when new layout used

pull/987/head
Sam Seed 4 years ago
parent
commit
9e4291213f
  1. 6
      app/views/locations/index.html.erb

6
app/views/locations/index.html.erb

@ -11,9 +11,9 @@
<%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %> <%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %>
<% if FeatureToggle.new_locations_table_layout_enabled? %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds-from-desktop"> <div class="govuk-grid-column-two-thirds-from-desktop">
<% if FeatureToggle.new_locations_table_layout_enabled? %>
<%= render SubNavigationComponent.new(items: scheme_items(request.path, @scheme.id, "Locations")) %> <%= render SubNavigationComponent.new(items: scheme_items(request.path, @scheme.id, "Locations")) %>
<h2 class="govuk-visually-hidden">Locations</h2> <h2 class="govuk-visually-hidden">Locations</h2>
@ -50,8 +50,6 @@
<% end %> <% end %>
<% end %> <% end %>
<%= govuk_button_link_to "Add a location", new_scheme_location_path(@scheme), secondary: true %> <%= govuk_button_link_to "Add a location", new_scheme_location_path(@scheme), secondary: true %>
</div>
</div>
<% else %> <% else %>
<%= render SubNavigationComponent.new(items: scheme_items(request.path, @scheme.id, "Locations")) %> <%= render SubNavigationComponent.new(items: scheme_items(request.path, @scheme.id, "Locations")) %>
@ -108,5 +106,7 @@
<%= govuk_button_link_to "Add a location", new_scheme_location_path(@scheme), secondary: true %> <%= govuk_button_link_to "Add a location", new_scheme_location_path(@scheme), secondary: true %>
<% end %> <% end %>
</div>
</div>
<%== render partial: "pagy/nav", locals: { pagy: @pagy, item_name: "locations" } %> <%== render partial: "pagy/nav", locals: { pagy: @pagy, item_name: "locations" } %>

Loading…
Cancel
Save