{% extends "layouts/content.html" %} {% block styles %} {% endblock %} {% block content %} {% if form.instance.id %}

Edit chart “{{ form.instance.name }}”…

{% else %}

Add new chart…

{% endif %} {% block content_form %}
{% csrf_token %} {% if form.errors %}
{{ form.non_field_errors }}
    {% for field in form %} {% if field.errors %}
  • {{ field.label }}: {{ field.errors|striptags }}
  • {% endif %} {% endfor %}
{% endif %}
{{ form.name.label_tag }} {{ form.name }} {{ form.owner }}
{{ form.description.label_tag }} {{ form.description }}
{% endblock content_form %} {% endblock %}