Merge pull request #3267 from oliverguenther/feature/project_destroy_notification

Use severe notification for project destroy dialog
pull/3274/head
ulferts 9 years ago
commit 28bb023941
  1. 30
      app/views/projects/destroy_info.html.erb
  2. 3
      config/locales/en.yml

@ -27,18 +27,20 @@ See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= toolbar title: l(:label_confirmation) %>
<div class="warning">
<p><strong><%=h @project_to_destroy %></strong><br />
<%=l(:text_project_destroy_confirmation)%>
<% if @project_to_destroy.descendants.any? %>
<br />
<%= l(:text_subprojects_destroy_warning, content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))).html_safe %>
<% end %>
</p>
<p>
<%= form_tag(project_path(@project_to_destroy), :method => :delete) do %>
<label><%= check_box_tag 'confirm', 1 %> <%= l(:general_text_Yes) %></label>
<%= submit_tag l(:button_delete), class: 'button -highlight' %>
<% end %>
</p>
<div class="notification-box -warning -severe">
<div class="notification-box--content">
<p><strong><%= l(:text_project_destroy_title) %></strong><br />
<%= l(:text_project_destroy_confirmation, identifier: @project_to_destroy.identifier)%>
<% if @project_to_destroy.descendants.any? %>
<br />
<%= l(:text_subprojects_destroy_warning, content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))).html_safe %>
<% end %>
</p>
<p>
<%= styled_form_tag(project_path(@project_to_destroy), method: :delete) do %>
<label><%= check_box_tag 'confirm', 1 %> <%= l(:general_text_Yes) %></label>
<%= submit_tag l(:button_delete), class: 'button' %>
<% end %>
</p>
</div>
</div>

@ -1394,7 +1394,8 @@ en:
text_own_membership_delete_confirmation: "You are about to remove some or all of your permissions and may no longer be able to edit this project after that.\nAre you sure you want to continue?"
text_plugin_assets_writable: "Plugin assets directory writable"
text_powered_by: "Powered by %{link}"
text_project_destroy_confirmation: "Are you sure you want to delete this project and related data?"
text_project_destroy_title: "Do you really want to delete this project?"
text_project_destroy_confirmation: "If you continue, the project %{identifier} and all related data will be permanently destroyed. Please check the box below if you want to continue."
text_project_identifier_info: "Only lower case letters (a-z), numbers, dashes and underscores are allowed, must start with a lower case letter."
text_reassign: "Reassign to"
text_reassign_to: "work package:"

Loading…
Cancel
Save