{% extends 'members_template.html' %}

{% block members_content %}

<div class="col-md-12">
<h1>Delete Member: {{member.get_full_name}}</h1>
<form action="" method="post">{% csrf_token %}
    <p>Are you sure you want to delete this member?</p>

    <p>If they've had any involvement with the club you should really think twice before permanently deleting them!
        Instead you should probably <a href="../archive/">archive</a> them instead.</p>

    <table class="table">
        <tr><th>UID</th><td>{{ member.uid }}</td></tr>
        <tr><th>Name</th><td>{{ member.get_full_name }}</td></tr>
        <tr><th>Joined Database</th><td>{{ member.date_joined|date }}</td></tr>
        <tr><th>Lesson records</th><td>{{ member.performed_lesson_ramble|safe }}</td></tr>
    </table>

    <div class="form-actions">
	    <input type="submit" class="btn btn-danger" value="Delete (I'm SuperDuper&trade; Sure)" />
	    <a href="{% url 'xsd_members:MemberDetail' member.pk %}"  class="btn btn-success alignright">Cancel</a>
	</div>
</form>
</div>


{% endblock %}


