From 3dca1560e64eb9ff5f6646e1616fdca645088aa4 Mon Sep 17 00:00:00 2001 From: phonghpham Date: Tue, 19 Dec 2023 21:00:41 -0600 Subject: [PATCH] fix paths to views update ransack search form labels --- .../adoption_application_reviews/_search_results.html.erb | 2 +- .../organizations/adoption_application_reviews/index.html.erb | 4 ++-- app/views/organizations/pets/show.html.erb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/organizations/adoption_application_reviews/_search_results.html.erb b/app/views/organizations/adoption_application_reviews/_search_results.html.erb index ca5ed0d4b..65f3eb36b 100644 --- a/app/views/organizations/adoption_application_reviews/_search_results.html.erb +++ b/app/views/organizations/adoption_application_reviews/_search_results.html.erb @@ -5,6 +5,6 @@ <% @collection.each do |pet| %>
- <%= render "components/pet_tabs/applications", applications: pet.adopter_applications, pet: pet %> + <%= render "organizations/pets/tabs/applications", applications: pet.adopter_applications, pet: pet %>
<% end %> diff --git a/app/views/organizations/adoption_application_reviews/index.html.erb b/app/views/organizations/adoption_application_reviews/index.html.erb index 8e174f4b5..47c277523 100644 --- a/app/views/organizations/adoption_application_reviews/index.html.erb +++ b/app/views/organizations/adoption_application_reviews/index.html.erb @@ -9,11 +9,11 @@ <%= search_form_for @q, url: adoption_application_reviews_path do |f| %>
- <%= f.label :name_cont, "Pet Name" %> + <%= f.label :name_i_cont, "Pet Name" %> <%= f.text_field :name_i_cont, class: "form-control", placeholder: "Enter Pet Name" %>
- <%= f.label :adopter_applications_applicant_name_cont, "Applicant Name" %> + <%= f.label :adopter_applications_applicant_name_i_cont, "Applicant Name" %> <%= f.text_field :adopter_applications_applicant_name_i_cont, class: "form-control", placeholder: "Enter Applicant Name" %>
diff --git a/app/views/organizations/pets/show.html.erb b/app/views/organizations/pets/show.html.erb index 07dcb55aa..e5ca6d566 100644 --- a/app/views/organizations/pets/show.html.erb +++ b/app/views/organizations/pets/show.html.erb @@ -14,7 +14,7 @@ <% if @active_tab == 'tasks' %> <%= render partial: "organizations/tasks/tasks", locals: { pet: @pet } %> <% else %> - <%= render partial: "components/pet_tabs/#{@active_tab}", locals: { pet: @pet, applications: @pet.adopter_applications } %> + <%= render partial: "organizations/pets/tabs/#{@active_tab}", locals: { pet: @pet, applications: @pet.adopter_applications } %> <% end %>