From a1cfb16e69cac566cb40b29b1493c2e1617a5049 Mon Sep 17 00:00:00 2001 From: Mikhail Grigoriev Date: Mon, 16 Dec 2024 21:04:41 -0500 Subject: [PATCH 1/2] feat: add new tooltips for Application paused and Published --- .../organizations/staff/pets/_form.html.erb | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/app/views/organizations/staff/pets/_form.html.erb b/app/views/organizations/staff/pets/_form.html.erb index 3fcd09e67..dd09184ee 100644 --- a/app/views/organizations/staff/pets/_form.html.erb +++ b/app/views/organizations/staff/pets/_form.html.erb @@ -80,15 +80,19 @@
-
+ +
<%= form.hidden_field :application_paused, value: false %> <%= form.check_box :application_paused, { class: "form-check-input", role: "switch", id: "flexSwitchCheckChecked" }, true, false %> -
+
+ -
- <%= form.hidden_field :published, value: false %> - <%= form.check_box :published, { class: "form-check-input", role: "switch", required: false }, true, false %> -
+ +
+ <%= form.hidden_field :published, value: false %> + <%= form.check_box :published, { class: "form-check-input", role: "switch", required: false }, true, false %> +
+
<%= form.submit t('general.save'), class: 'btn btn-primary' %> @@ -96,3 +100,7 @@ <% end %> + From a5660c2d258ad4a3b83ee2a4eb699e14b55845d3 Mon Sep 17 00:00:00 2001 From: Mikhail Grigoriev Date: Mon, 16 Dec 2024 21:04:59 -0500 Subject: [PATCH 2/2] fix: add script for broken tooltip --- .../pets/tabs/partials/_application_create_button.html.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/organizations/staff/pets/tabs/partials/_application_create_button.html.erb b/app/views/organizations/staff/pets/tabs/partials/_application_create_button.html.erb index e2f28c868..c19e1042c 100644 --- a/app/views/organizations/staff/pets/tabs/partials/_application_create_button.html.erb +++ b/app/views/organizations/staff/pets/tabs/partials/_application_create_button.html.erb @@ -16,3 +16,7 @@ disabled><%=t("organizations.staff.pets.applications.new_adoption")%> <% end %> +