{% extends "base.html" %}

{% block content %}
<article class="chart">
    <h1><i class="fas fa-plus"></i> New {{form.name}} entry</h1>
    <section>
        <form method="POST" action="{{request.get_full_path}}">
            {% csrf_token %}
            {{form.as_p}}
            <p class="form__submit">
                <input class="action-button" type="submit" value="Create entry"> or <a href="{% url 'chart-detail' chart.pk %}">cancel</a>
            </p>
        </form>
    </section>
</article>  
{% endblock %}