Browse Source

lint and fix test

pull/832/head
Ted-U 3 years ago
parent
commit
0988a57888
  1. 6
      app/views/form/check_answers.html.erb
  2. 5
      app/views/locations/edit.html.erb
  3. 1
      app/views/locations/edit_name.html.erb

6
app/views/form/check_answers.html.erb

@ -19,9 +19,9 @@
<% subsection.applicable_questions(@case_log).group_by(&:check_answers_card_number).values.each do |question_group| %>
<%= render CheckAnswersSummaryListCardComponent.new(questions: question_group, case_log: @case_log, user: current_user) %>
<br />
<br />
<br />
<br>
<br>
<br>
<% end %>
<%= form_with model: @case_log, method: "get" do |f| %>

5
app/views/locations/edit.html.erb

@ -7,17 +7,14 @@
) %>
<% end %>
<%= form_for(@location, method: :patch, url: location_path) do |f| %>
<%= form_for(@location, method: :patch, url: location_path(location_id: @location.id)) do |f| %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= f.govuk_error_summary %>
<%= render partial: "organisations/headings", locals: { main: "Add a location to this scheme", sub: @scheme.service_name } %>
<%= f.govuk_text_field :postcode,
label: { size: "m" },
hint: { text: I18n.t("hints.location.postcode") },

1
app/views/locations/edit_name.html.erb

@ -12,7 +12,6 @@
<div class="govuk-grid-column-two-thirds">
<%= f.govuk_error_summary %>
<%= render partial: "organisations/headings", locals: { main: "Location name for #{@location.postcode}", sub: @scheme.service_name } %>
<%= f.govuk_text_field :name,

Loading…
Cancel
Save