No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

obj_delete.html 811B

1234567891011121314151617181920212223242526272829303132333435
  1. {% extends "base.html" %}
  2. {% load crispy_forms_tags %}
  3. {% block content %}
  4. <div class="row">
  5. <div class="col-sm-12">
  6. <div class="panel panel-{% if reasons %}danger{%else%}default{%endif%}">
  7. <div class="panel-heading">Delete {{ object }}?</div>
  8. <div class="panel-body">
  9. {% if reasons %}
  10. <p>
  11. You cannot delete this object, as other objects in the database depend on it!
  12. </p>
  13. <p>
  14. <ul>
  15. {% for reason in reasons %}
  16. <li>{{ reason }}</li>
  17. {% endfor %}
  18. </ul>
  19. {% else %}
  20. <p>
  21. Are you sure you want to delete {{ object }}?
  22. </p>
  23. <form method="post" action="#">
  24. {% csrf_token %}
  25. <button type="submit" class="btn btn-primary">Delete {{ object }}</button>
  26. </form>
  27. {% endif %}
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. {% endblock %}