diff --git a/app/views/controllers/collection_numbers/_form.erb b/app/views/controllers/collection_numbers/_form.erb index 225a5a5b60..2279e045cd 100644 --- a/app/views/controllers/collection_numbers/_form.erb +++ b/app/views/controllers/collection_numbers/_form.erb @@ -4,11 +4,11 @@ when "new", "create" url_params = add_query_param( { action: :create, observation_id: @observation.id } ) - button = :ADD.t + button = :ADD.l when "edit", "update" url_params = add_query_param({ action: :update }) url_params = url_params.merge({ back: @back }) if @back.present? - button = :SAVE.t + button = :SAVE.l end form_args = { model: @collection_number, url: url_params, id: "collection_number_form" diff --git a/app/views/controllers/collection_numbers/edit.html.erb b/app/views/controllers/collection_numbers/edit.html.erb index 5eb6d08db2..1c4b174192 100644 --- a/app/views/controllers/collection_numbers/edit.html.erb +++ b/app/views/controllers/collection_numbers/edit.html.erb @@ -9,8 +9,7 @@ add_tab_set(
- <%= render(partial: "collection_numbers/form", - locals: { action: :update, local: true }) %> + <%= render(partial: "collection_numbers/form", locals: { local: true }) %>
diff --git a/app/views/controllers/collection_numbers/new.html.erb b/app/views/controllers/collection_numbers/new.html.erb index 5d0889ac62..4829d5e434 100644 --- a/app/views/controllers/collection_numbers/new.html.erb +++ b/app/views/controllers/collection_numbers/new.html.erb @@ -6,8 +6,7 @@ add_tab_set(collection_number_form_new_tabs(obs: @observation))
- <%= render(partial: "collection_numbers/form", - locals: { action: :create, local: true }) %> + <%= render(partial: "collection_numbers/form", locals: { local: true }) %>
diff --git a/app/views/controllers/herbarium_records/_form.erb b/app/views/controllers/herbarium_records/_form.erb index adfdfb9abc..a54b9747d4 100644 --- a/app/views/controllers/herbarium_records/_form.erb +++ b/app/views/controllers/herbarium_records/_form.erb @@ -4,11 +4,11 @@ when "new", "create" url_params = add_query_param( { action: :create, observation_id: @observation.id } ) - button = :ADD.t + button = :ADD.l when "edit", "update" url_params = add_query_param({ action: :update }) url_params = url_params.merge({ back: @back }) if @back.present? - button = :SAVE.t + button = :SAVE.l end form_args = { model: @herbarium_record, url: url_params, id: "herbarium_record_form" diff --git a/app/views/controllers/herbarium_records/edit.html.erb b/app/views/controllers/herbarium_records/edit.html.erb index 976e587314..dd2889dc3e 100644 --- a/app/views/controllers/herbarium_records/edit.html.erb +++ b/app/views/controllers/herbarium_records/edit.html.erb @@ -7,8 +7,7 @@ add_tab_set(herbarium_record_form_edit_tabs(back: @back,
- <%= render(partial: "herbarium_records/form", - locals: { action: :update, local: true }) %> + <%= render(partial: "herbarium_records/form", locals: { local: true }) %>
diff --git a/app/views/controllers/herbarium_records/new.html.erb b/app/views/controllers/herbarium_records/new.html.erb index ee66763013..8a6f865b5c 100644 --- a/app/views/controllers/herbarium_records/new.html.erb +++ b/app/views/controllers/herbarium_records/new.html.erb @@ -7,8 +7,7 @@ add_tab_set(herbarium_record_form_new_tabs(obs: @observation))
<%= :Observation.t %> #<%= @observation.id %> - <%= render(partial: "herbarium_records/form", - locals: { action: :create, local: true }) %> + <%= render(partial: "herbarium_records/form", locals: { local: true }) %>
diff --git a/app/views/controllers/sequences/_form.erb b/app/views/controllers/sequences/_form.erb index 9af295b4ef..14ee3fa3e1 100644 --- a/app/views/controllers/sequences/_form.erb +++ b/app/views/controllers/sequences/_form.erb @@ -4,11 +4,11 @@ when "new", "create" url_params = add_query_param( { action: :create, observation_id: @observation.id } ) - button = :ADD.t + button = :ADD.l when "edit", "update" url_params = add_query_param({ action: :update }) url_params = url_params.merge({ back: @back }) if @back.present? - button = :UPDATE.t + button = :UPDATE.l end form_args = { model: @sequence, url: url_params, id: "sequence_form" diff --git a/app/views/controllers/sequences/edit.html.erb b/app/views/controllers/sequences/edit.html.erb index d7dd988335..6f276ed962 100644 --- a/app/views/controllers/sequences/edit.html.erb +++ b/app/views/controllers/sequences/edit.html.erb @@ -10,8 +10,7 @@ obs = @sequence.observation
<%= render(partial: "sequences/observation_title", locals: { observation: obs }) %> - <%= render(partial: "sequences/form", - locals: { action: :update, local: true }) %> + <%= render(partial: "sequences/form", locals: { local: true }) %>
<%= :CREATED_BY.t %>: diff --git a/app/views/controllers/sequences/new.html.erb b/app/views/controllers/sequences/new.html.erb index e141e41575..d4a3159619 100644 --- a/app/views/controllers/sequences/new.html.erb +++ b/app/views/controllers/sequences/new.html.erb @@ -8,8 +8,7 @@ add_tab_set(sequence_form_tabs(obj: @observation))
<%= render(partial: "sequences/observation_title", locals: { observation: @observation }) %> - <%= render(partial: "sequences/form", - locals: { action: :create, local: true }) %> + <%= render(partial: "sequences/form", locals: { local: true }) %>