{% extends 'training_template.html' %}

{% block training_content %}
    <div class="row">
        <div class="col-md-12">
            <h1>Delete SDC</h1>
            <form action="" method="post">
                {% csrf_token %}
                <p>Are you sure you want to delete this planned SDC?</p>

                <table class="table">
                    <tr>
                        <th>SDC</th>
                        <td>{{ psdc.sdc }}</td>
                    </tr>
                    <tr>
                        <th>Date</th>
                        <td>{{ psdc.datetime }}</td>
                    </tr>
                    <tr>
                        <th>Notes</th>
                        <td>{{ psdc.notes|linebreaks }}</td>
                    </tr>
                    <tr>
                        <th>Trainees</th>
                        <td>{{ psdc.trainees.count }}</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_training:PerformedSDCDetail' psdc.pk %}" class="btn btn-success alignright">Bugger
                        That, Cancel</a>
                </div>
            </form>
        </div>
    </div>
{% endblock %}


