Files @ 5193ae7fc0e1
Branch filter:

Location: conntrackt/conntrackt/templates/conntrackt/delete_form.html

branko
CONNT-20: Implemented output of related items that will get removed as part of cascading on the confirmation page. Includes one custom model and view mixin, and small changes to the delete confirmation template.
{% extends "conntrackt/base.html" %}

{# For html_link #}
{% load conntrackt_tags %}
{# For Bootstrapped forms #}
{% load crispy_forms_tags %}

{% block content %}
<div class="row">
  <h1 class="span12">{{headline}}</h1>
</div>
<div class="row">
  <div class="span12">
    <form action="" method="post">
      <div class="controls controls-row">
        {% csrf_token %}
        {{ form }}
        The following entries will be removed:
        <ul>
          {{ related_items|unordered_list }}
        </ul>
        Are you sure you want to remove them?
      </div>
      <hr>
      <div class="controls">
        <button type="submit" class="btn btn-primary">Remove</button>
      </div>
    </form>
  </div>
</div>
{% endblock content %}