{% extends "core/base.html" %}
{% load core_extras %}
{% block section_title %}Remove {{ object|verbose_name|title }}{% endblock %}
{% block content %}
<div class="row">
<form method="post">{% csrf_token %}
    <p>Are you sure you want to remove the "{{ object|verbose_name }}" from "{{ object }}"?</p>
    <button type="submit" class="btn btn-danger">Delete</button>
    <a href="{{ request.META.HTTP_REFERER }}" class="btn btn-primary">Cancel</a>
    <input type="hidden" id="previous_page" name="previous_page" value="/previous/page/url">
</form>
<script>
    prev = document.getElementById("previous_page");
    prev.value = document.referrer;
</script>
</div>
{% endblock %}
