{% extends extend_template %}
{% block content %}
<div class="container">
    {% if context.title %}<h1>{{context.title}}</h1>{% endif %}
    <form method="POST">
        {% csrf_token %}
        <div class="card" style="margin-bottom: 7px;">
            <div class="card-body">
                {{form.as_p}}
            </div>
        </div>
        <div class="float-right" style="padding-bottom: 10px;">
            <button type="submit" class="btn btn-success"><i class="fas fa-plus"></i> {{crud_button.create}}</button>
            <a role="button" href="{% url crud_url.view %}" type="button" class="btn btn-secondary"><i class="fas fa-times"></i> {{crud_button.cancel}}</a>
        </div>
    </form>
</div>
{% endblock %}