From 4f63f92e988e2912393ef7991bcd1b6bee1f9dca Mon Sep 17 00:00:00 2001 From: Jason Wang Date: Fri, 20 Dec 2024 19:09:47 -0800 Subject: [PATCH] initial commit; --- .../staff/pets/tabs/_fosters.html.erb | 38 +++++++++---------- .../staff/pets/tabs/partials/_foster.html.erb | 17 +++++---- 2 files changed, 29 insertions(+), 26 deletions(-) diff --git a/app/views/organizations/staff/pets/tabs/_fosters.html.erb b/app/views/organizations/staff/pets/tabs/_fosters.html.erb index c6c87c619..18bf0c4f9 100644 --- a/app/views/organizations/staff/pets/tabs/_fosters.html.erb +++ b/app/views/organizations/staff/pets/tabs/_fosters.html.erb @@ -1,24 +1,24 @@ -
+
- <% #headers %> -
-
- <%= t("organizations.staff.pets.show.fosterer")%> + <% fosters.each do |foster|%> + <% #headers %> +
+
+ <%= t("organizations.staff.pets.show.fosterer")%> +
+
+ <%= t("organizations.staff.pets.show.status")%> +
+
+ <%= t("organizations.staff.pets.show.start_date")%> +
+
+ <%= t("organizations.staff.pets.show.end_date")%> +
+
+
-
- <%= t("organizations.staff.pets.show.status")%> -
-
- <%= t("organizations.staff.pets.show.start_date")%> -
-
- <%= t("organizations.staff.pets.show.end_date")%> -
-
-
-
- - <% fosters.each do |foster|%> + <%= render 'organizations/staff/pets/tabs/partials/foster', foster: foster %> <% end %>
diff --git a/app/views/organizations/staff/pets/tabs/partials/_foster.html.erb b/app/views/organizations/staff/pets/tabs/partials/_foster.html.erb index ab06fc1af..df012f2a1 100644 --- a/app/views/organizations/staff/pets/tabs/partials/_foster.html.erb +++ b/app/views/organizations/staff/pets/tabs/partials/_foster.html.erb @@ -1,17 +1,19 @@ -
+
-
+
<%= link_to link_to "PLACEHOLDER FOR FORM ANSWERS", nil, class: "link-underline link-underline-opacity-0" %>
+ -
+
<%= foster.status.to_s.titleize %>
+ -
+
<%= turbo_frame_tag dom_id(foster, :start_date) do %> <%= link_to foster.start_date.strftime("%m/%d/%Y"), edit_staff_manage_foster_path(foster), @@ -19,15 +21,16 @@ <% end %>
-
+
<%= turbo_frame_tag dom_id(foster, :end_date) do %> <%= link_to foster.end_date.strftime("%m/%d/%Y"), edit_staff_manage_foster_path(foster), class: "btn btn-outline-primary mb-2 px-2 py-1" %> <% end %>
- -
+ + +
<%= button_to t('general.delete'), staff_manage_foster_path(foster), method: :delete, class: "btn btn-outline-danger px-2 py-1",