Skip to content

Commit

Permalink
fix paths to views
Browse files Browse the repository at this point in the history
update ransack search form labels
  • Loading branch information
phonghpham committed Dec 20, 2023
1 parent 7b8ab9c commit 3dca156
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<% @collection.each do |pet| %>
<!--pet name-->
<div class="mb-4">
<%= render "components/pet_tabs/applications", applications: pet.adopter_applications, pet: pet %>
<%= render "organizations/pets/tabs/applications", applications: pet.adopter_applications, pet: pet %>
</div>
<% end %>
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<%= search_form_for @q, url: adoption_application_reviews_path do |f| %>
<div class="row">
<div class="form-group mb-3 col-md-4">
<%= 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" %>
</div>
<div class="form-group mb-3 col-md-4">
<%= 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" %>
</div>
<div class="form-group mb-3 col-md-4">
Expand Down
2 changes: 1 addition & 1 deletion app/views/organizations/pets/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
</div>

Expand Down

0 comments on commit 3dca156

Please sign in to comment.