-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path_revoke_confirmation_modal.html.erb
38 lines (36 loc) · 1.42 KB
/
_revoke_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
32
33
34
35
36
37
38
<%= viral_dialog(open: open) do |dialog| %>
<%= dialog.with_header(title: t("personal_access_tokens.revoke_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(
"personal_access_tokens.revoke_confirmation.description",
token_name: personal_access_token.name,
bot_name: bot_account.user.email,
) %>
</p>
<%= form_for(:deletion, url: revoke_namespace_project_bot_personal_access_token_path(
bot_id: bot_account.id,
id: personal_access_token.id
), method: :delete,
data: {
turbo_frame: "_top",
controller: "token",
action:"turbo:submit-end->viral--dialog#close"
}
) do |form| %>
<%= form.submit t("personal_access_tokens.revoke_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 %>