Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@ See COPYRIGHT and LICENSE files for more details.

++#%>

<%= render(Primer::OpenProject::DangerDialog.new(title: t(".title"),
form_arguments:,
size: :large)) do |dialog| %>
<% dialog.with_confirmation_message do |message|
message.with_heading(tag: :h2) { t(".heading") }
message.with_description_content(
t(".warning_html", wiki_provider: content_tag(:strong, @wiki_provider.name))
)
end %>
<% dialog.with_confirmation_check_box_content(t(:text_permanent_delete_confirmation_checkbox_label)) %>
<% end %>
<%=
render(Primer::OpenProject::DangerDialog.new(title: t(".title"), form_arguments:, size: :large)) do |dialog|
dialog.with_confirmation_message do |message|
message.with_heading(tag: :h2) { t(".heading") }
message.with_description_content(t(".description_html", wiki_provider: content_tag(:strong, @wiki_provider.name)))
end
dialog.with_confirmation_check_box_content(t(:text_permanent_delete_confirmation_checkbox_label))
end
%>
6 changes: 4 additions & 2 deletions modules/wikis/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ en:
admin:
destroy_confirmation_dialog_component:
title: Delete wiki provider
heading: Delete wiki provider?
warning_html: "You are about to delete %{wiki_provider}. This action is irreversible."
heading: Permanently delete this wiki provider?
description_html: >-
The wiki provider %{wiki_provider} and all the related wiki page links will be deleted. In addition, every
inline wiki page link will no longer be accessible. This action is irreversible.
forms:
general_info_form_component:
xwiki_instance_description: Please make sure you have administration privileges in your XWiki instance before doing the setup.
Expand Down
Loading