confirm_delete_user.mustache 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. <%
  2. # Copyright (C) 2011 - present Instructure, Inc.
  3. #
  4. # This file is part of Canvas.
  5. #
  6. # Canvas is free software: you can redistribute it and/or modify it under
  7. # the terms of the GNU Affero General Public License as published by the Free
  8. # Software Foundation, version 3 of the License.
  9. #
  10. # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
  11. # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
  13. # details.
  14. #
  15. # You should have received a copy of the GNU Affero General Public License along
  16. # with this program. If not, see <http://www.gnu.org/licenses/>.
  17. %>
  18. <% content_for :page_title do %>{{#t}}Confirm Delete{{/t}}<% end %>
  19. <% add_crumb t(:page_title, "Confirm Delete") %>
  20. <h2><%= t(:title, "Confirm Delete %{user} from %{account}", :user => @user.name, :account => @account.name) %></h2>
  21. <%= form_for :user, :url => account_user_url(@context, @user), :html => {:method => :delete} do |f| %>
  22. <%= t(:confirm_delete,
  23. "Are you sure you want to delete this user from the account %{account}?
  24. This will remove the user's data (including grades) from all
  25. courses and groups. This process cannot be undone.", :account => @account.name) %>
  26. <div class="form-actions">
  27. <a href="<%= account_url(@context) %>" class="btn">{{#t}}Cancel{{/t}}</a>
  28. <button type="submit" class="btn btn-primary"><%= t(:delete_button, "Delete %{user}", :user => @user.name) %></button>
  29. </div>
  30. <% end %>