{% load tom_common_extras %}

<div class="modal fade" id="userDeleteModal" tabindex="-1" role="dialog" aria-labelledby="userDeleteModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header alert-danger">
        <h5 class="modal-title" id="userDeleteModalLabel">Warning: This will permanently delete user.</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
          Are you sure that you want to remove <b>{{ user.username }}</b> from {% tom_name %}?
      </div>
      <div class="modal-footer">
          <form action="{% url  'user-delete' user.id %}" method="POST">
            {% csrf_token %}
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
              <button type="submit" class="btn btn-danger" role="button">Delete User</button>
          </form>
      </div>
    </div>
  </div>
</div>
