{% extends 'main/layout.html' %} {% block title %} {% if form.initial %} Editing {{ form.title.value }} {% else %} Post a comment for {{ post.title }} {% endif %} {% endblock %} {% block head_viewport %} {% endblock %} {% block content %}

{% if form.initial %} Editing comment {% else %} Post a comment for {{ post.title }} {% endif %}

{{ form.non_field_errors }}

{% if form.name.errors %} {% for error in form.name.errors %} {{ error|escape }}
{% endfor %} {% endif %}

{% if form.email.errors %} {% for error in form.email.errors %} {{ error|escape }}
{% endfor %} {% endif %}

{% if form.body.errors %} {% for error in form.body.errors %} {{ error|escape }}
{% endfor %} {% endif %}

{% csrf_token %}
{% endblock %}