diff --git a/app/views/organizations/staff/default_pet_tasks/_default_pet_task_cards.html.erb b/app/views/organizations/staff/default_pet_tasks/_default_pet_task_cards.html.erb new file mode 100644 index 000000000..5411f49ae --- /dev/null +++ b/app/views/organizations/staff/default_pet_tasks/_default_pet_task_cards.html.erb @@ -0,0 +1,27 @@ +<%# Card %> +
+
+ + <%# Card header %> + +
+
diff --git a/app/views/organizations/staff/default_pet_tasks/index.html.erb b/app/views/organizations/staff/default_pet_tasks/index.html.erb index 9226d7113..c15502f1b 100644 --- a/app/views/organizations/staff/default_pet_tasks/index.html.erb +++ b/app/views/organizations/staff/default_pet_tasks/index.html.erb @@ -36,10 +36,21 @@ <% end %> -
- <%== pagy_bootstrap_nav(@pagy) if @pagy.pages > 1 %> -
+ +
+ <%== pagy_bootstrap_nav(@pagy) if @pagy.pages > 1 %> +
+
+
+ <%= render "default_pet_tasks_table"%> +
+
+ <%= render partial:"default_pet_task_cards", collection: @default_pet_tasks, as: :default_pet_tasks %> +
+
+
+ <%== pagy_bootstrap_nav(@pagy) if @pagy.pages > 1 %> +
<% end %> <% end %> -<%= render "default_pet_tasks_table" %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 675e9f760..910317ae0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -440,6 +440,15 @@ en: default_pet_tasks: "Default Pet Tasks" create_default_task: "Create Default Task" are_you_sure_delete: "Are you sure you want to delete this default pet task?" + default_pet_task_cards: + name: "Name" + description: "Description" + species: "Species" + due_after: "Due in" + recurring: "Recurring" + default_pet_tasks: "Default Pet Tasks" + create_default_task: "Create Default Task" + are_you_sure_delete: "Are you sure you want to delete this default pet task?" default_pet_tasks_table: name: "Name" description: "Description"