Browse Source

refactor: simplify routing

pull/1034/head
natdeanlewissoftwire 4 years ago
parent
commit
05bb6f7265
  1. 8
      app/views/locations/index.html.erb

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

@ -61,9 +61,7 @@
<% end %> <% end %>
<% end %> <% end %>
<% end %> <% end %>
<%= form_with model: @scheme, url: scheme_locations_path(@scheme), method: "post", local: true do |f| %> <%= govuk_button_to "Add a location", scheme_locations_path(@scheme), method: "post", secondary: true %>
<%= f.govuk_submit "Add a location", secondary: true %>
<% end %>
</div> </div>
</div> </div>
@ -117,9 +115,7 @@
<% end %> <% end %>
<% end %> <% end %>
<% end %> <% end %>
<%= form_with model: @scheme, url: scheme_locations_path(@scheme), method: "post", local: true do |f| %> <%= govuk_button_to "Add a location", scheme_locations_path(@scheme), method: "post", secondary: true %>
<%= f.govuk_submit "Add a location", secondary: true %>
<% end %>
<% end %> <% end %>

Loading…
Cancel
Save