{% extends "base.html" %}

{% block content %}
<article class="chart">
    <h1>Create chart</h1>
    <section>
        <form method="POST" action="{% url 'chart-create' %}">
            {% csrf_token %}
            {{form.as_p}}
            <p class="form__submit">
                <input class="action-button" type="submit" value="Create chart"> or <a href="{% url 'chart-list' %}">cancel</a>
            </p>
        </form>
    </section>
</article>  
{% endblock %}