-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path_destroy_confirmation_modal.html.erb
31 lines (29 loc) · 1.19 KB
/
_destroy_confirmation_modal.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<%= viral_dialog(open: open) do |dialog| %>
<%= dialog.with_header(title: t("bots.destroy_confirmation.title")) %>
<%= dialog.with_section do %>
<%= turbo_frame_tag("deletion-alert") %>
<div
class="
mb-4 font-normal text-slate-500 dark:text-slate-400 overflow-x-visible
"
>
<p class="mb-4">
<%= t("bots.destroy_confirmation.description", bot_name: bot_account.user.email) %>
</p>
<%= form_for(:deletion, url: group_bot_path(id: bot_account.id), method: :delete,
data: {
turbo_frame: "_top",
controller: "token",
action:"turbo:submit-end->viral--dialog#close"
}
) do |form| %>
<%= form.submit t("bots.destroy_confirmation.submit_button"),
class:
"button text-sm px-5 py-2.5 text-white bg-red-700 border-red-800 focus:outline-none hover:bg-red-800 focus:ring-red-300 dark:focus:ring-red-700 dark:bg-red-600 dark:text-white dark:border-red-600 dark:hover:bg-red-700",
data: {
action: "click->token#removeTokenPanel",
} %>
<% end %>
</div>
<% end %>
<% end %>