Skip to content

Commit

Permalink
Merge pull request #2343 from MushroomObserver/njw-tweak-field-slip-form
Browse files Browse the repository at this point in the history
Move field slip notes further down the form
  • Loading branch information
mo-nathan authored Aug 31, 2024
2 parents 7dfda30 + 54603fe commit 394ff60
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/views/controllers/field_slips/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
label: :COLLECTOR.t + ":", type: :user) %>
<%= autocompleter_field(form: form, field: :location,
label: :LOCATION.t + ":", type: :location) %>

<%= render(partial: "shared/notes_fields",
locals: { form:, fields: field_slip.notes_fields }) %>

<%= autocompleter_field(form: form, field: :field_slip_id,
label: :ID.t + ":",
type: :name) %>
Expand All @@ -44,6 +40,9 @@
<%= text_field_with_label(form: form, field: :other_codes,
label: "#{:field_slip_other_codes.t} (#{:field_slip_other_example.t}):") %>

<%= render(partial: "shared/notes_fields",
locals: { form:, fields: field_slip.notes_fields }) %>

<%= submit_button(form: form, button: :field_slip_create_obs.t,
class: "mt-5") if action == "new" %>

Expand Down

0 comments on commit 394ff60

Please sign in to comment.