{% set need_js = True %} {% set title = "Edit post" %} {% extends "base.html" %} {% block body %}

Edit post

{% if must_copy %} {% if deadline_passed %}

The deadline has passed, editing will create a new post. {% else %}

Follow-up posts exist, editing will create a new post. {% endif %} {% endif %}

{{ form.csrf_token }} {% if form.errors['comment'] %}

{{ form.errors['comment'][0] }} {% endif %}

{{ form.comment(rows=16, cols=80) }} {% if g.is_grader %}

{{ form.points.label }} {{ form.points(size=6) }} {% if g.topic.max_points %} / {% endif %} {% if form.errors['points'] %}

{{ form.errors['points'][0] }} {% endif %} {% endif %}

Preview:

{{ form.submit_button(class='ok', accesskey='s') }} {% if not must_copy %} {{ form.silent_submit(class='ok', title="Submit, but do not send notifications.") }} {% endif %} Cancel {% if not must_copy %}

{{ form.delete(class='danger') }} {% endif %}

{% endblock %}