{% extends 'layout.html' %}

{% block body %}
<div class='col-md-2' ></div>
<div class='col-md-8'>
    <div class='panel panel-default'>
        <div class='panel-body'>
            <h3>Delete Regular Cost?</h3>
            <table style='width: 100%' class="table table-striped table-bordered table-condensed">                
                <tr>
                    <th style='text-align:right'>Description of regular cost</th>
                    <td style='text-align: left'>{{ regular_cost.description }}</td>
                </tr>
                <tr>
                    <th style='text-align:right'>Costs (per instance)</th>
                    <td style='text-align: left'>
                        {% if regular_cost.costs %}
                            {{ regular_cost.costs }}
                        {% else %}
                            --
                        {% endif %}
                        €
                    </td>
                </tr>
                <tr>
                    <th style='text-align:right'>Days for regular costs</th>
                    <td style='text-align: left'>{{ regular_cost.days }}</td>
                </tr>
                <tr>
                    <th style='text-align:right'>regular costs starting from</th>
                    <td style='text-align: left'>{{ regular_cost.start_at }}</td>
                </tr>
                <tr>
                    <th style='text-align:right'>regular costs ending at</th>
                    <td style='text-align: left'>{{ regular_cost.ends_at }}</td>
                </tr>
            </table>
            <form class='form-horizontal' method='POST'>
                {{ form.hidden_tag() }}
                {{ render_field_with_errors(form.submit) }}
            </form>
        </div>
    </div>
</div>
<div class='col-md-2' ></div>
{% endblock %}