{% extends "planner/base.html" %} {% block title %}{{ title }}{% endblock %} {% block content %}

{% if plan %}{{ plan.name }}{% else %}New plan{% endif %}

{% if plan %}View results{% endif %}
    {% for key, label in sections %}
  1. {% if plan %}{{ label }}{% else %}{{ label }}{% endif %}
  2. {% endfor %}
{% csrf_token %}

{{ title }}

{{ help }}

{% if form %} {{ form.non_field_errors }}
{% for field in form %}
{{ field }} {% if field.help_text %}{{ field.help_text }}{% endif %} {{ field.errors }}
{% endfor %}
{% else %} {{ formset.management_form }} {{ formset.non_form_errors }} {% for f in formset %}
{{ f.non_field_errors }} {% for hidden in f.hidden_fields %}{{ hidden }}{% endfor %}
{% for field in f.visible_fields %}
{{ field }} {{ field.errors }}
{% endfor %}
{% endfor %}

Use the blank row at the bottom to add an entry; tick Delete to remove one.

{% endif %}
{% if next_section %}{% endif %} {% if plan %}{% endif %}
{% endblock %}