{% set title = 'Edit topic' %} {% extends "base.html" %} {% block body %}

Edit{% if copy_tid != None %} copy of{% endif %} topic

{% macro field(name, help=None) %} {{ form[name].label }} {{ form[name]() }} {{ help or "" }} {% if form.errors[name] %}
{{ form.errors[name][0] }} {% endif %} {% endmacro %}
{{ form.csrf_token }} {{ field('rank', 'numeric sorting key') }} {{ field('ident', 'identifier in URL, unique within course') }} {{ field('title') }} {{ field('type') }} {{ field('deadline', 'in local time zone (if your browser does not support datetime widgets, enter yyyy-mm-ddThh:mm)') }} {{ field('max_points') }} {{ field('public', 'topic is visible to students') }} {{ field('notify', 'send notifications on all posts now') }}
{% if form.copy_to %}

Copy to course

{{ form.copy_to }} {% endif %}

{{ form.submit(class='ok', accesskey='s') }} {% if tid != None %} Copy

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

{% endblock %}