- <% #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")%>
-
-
-
-
-
- <% fosters.each do |foster|%>
- <%= render 'organizations/staff/pets/tabs/partials/foster', foster: foster %>
- <% end %>
+
+ <%# Table layout %>
+
+ <%= render "organizations/staff/pets/tabs/partials/foster_table", fosters: fosters %>
+
+
+ <%= render 'organizations/staff/pets/tabs/partials/foster_cards', fosters: fosters %>
diff --git a/app/views/organizations/staff/pets/tabs/partials/_foster.html.erb b/app/views/organizations/staff/pets/tabs/partials/_foster.html.erb
deleted file mode 100644
index ab06fc1af..000000000
--- a/app/views/organizations/staff/pets/tabs/partials/_foster.html.erb
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
- <%= 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),
- class: "btn btn-outline-primary mb-2 px-2 py-1" %>
- <% 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",
- data: {
- turbo_confirm: "Click OK to delete this foster."
- } %>
-
-
diff --git a/app/views/organizations/staff/pets/tabs/partials/_foster_cards.html.erb b/app/views/organizations/staff/pets/tabs/partials/_foster_cards.html.erb
new file mode 100644
index 000000000..6ce44f39c
--- /dev/null
+++ b/app/views/organizations/staff/pets/tabs/partials/_foster_cards.html.erb
@@ -0,0 +1,54 @@
+<% fosters.each do |foster| %>
+ <%# Grid cell %>
+
+ <%# Card %>
+
+ <%# Card body %>
+
+ -
+
+ -
+ Fosterer:
+
+ <%= link_to foster.person.full_name, staff_person_form_submissions_path(foster.person)%>
+
+
+ -
+
+ <%= foster.status.to_s.titleize %>
+
+
+ -
+ Start date:
+ <%= turbo_frame_tag dom_id(foster, :start_date) do %>
+ <%= link_to foster.start_date.strftime("%m/%d/%Y"),
+ edit_staff_manage_foster_path(foster, page: params[:page]),
+ class: "btn btn-outline-primary mb-2"
+ %>
+ <% end %>
+
+ -
+ End date:
+ <%= turbo_frame_tag dom_id(foster, :end_date) do %>
+ <%= link_to foster.end_date.strftime("%m/%d/%Y"),
+ edit_staff_manage_foster_path(foster, page: params[:page]),
+ class: "btn btn-outline-primary mb-2"
+ %>
+ <% end %>
+
+ -
+ <%= button_to t('general.delete'),
+ staff_manage_foster_path(foster, page: params[:page]),
+ method: :delete,
+ class: "btn btn-outline-danger",
+ data: {
+ turbo_confirm: "Click OK to delete this foster."
+ }
+ %>
+
+
+
+
+
+
+<% end %>
diff --git a/app/views/organizations/staff/pets/tabs/partials/_foster_table.html.erb b/app/views/organizations/staff/pets/tabs/partials/_foster_table.html.erb
new file mode 100644
index 000000000..79a1095dd
--- /dev/null
+++ b/app/views/organizations/staff/pets/tabs/partials/_foster_table.html.erb
@@ -0,0 +1,20 @@
+
+
+
+
+
+ Fosterer |
+ Status |
+ Start Date |
+ End Date |
+ |
+
+
+
+ <% fosters.each do |foster|%>
+ <%= render "organizations/staff/pets/tabs/partials/foster_table_row", foster: foster %>
+ <% end %>
+
+
+
+
diff --git a/app/views/organizations/staff/pets/tabs/partials/_foster_table_row.html.erb b/app/views/organizations/staff/pets/tabs/partials/_foster_table_row.html.erb
new file mode 100644
index 000000000..b7503f9c0
--- /dev/null
+++ b/app/views/organizations/staff/pets/tabs/partials/_foster_table_row.html.erb
@@ -0,0 +1,44 @@
+
+
+
+ <%= link_to foster.person.full_name, staff_person_form_submissions_path(foster.person)%>
+ |
+
+
+
+
+ <%= 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, page: params[:page]),
+ class: "btn btn-outline-primary"
+ %>
+ <% 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, page: params[:page]),
+ class: "btn btn-outline-primary"
+ %>
+ <% end %>
+ |
+
+
+
+ <%= button_to t('general.delete'),
+ staff_manage_foster_path(foster, page: params[:page]),
+ method: :delete,
+ class: "btn btn-outline-danger",
+ data: {
+ turbo_confirm: "Click OK to delete this foster."
+ }
+ %>
+
+ |
+