{% extends 'base.html' %} {% block title %}{% if editing %}Edit announcement{% else %}New announcement{% endif %} - Packs Site{% endblock %} {% block content %}

# {% if editing %} Edit announcement{% else %} New announcement{% endif %}

{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{{ form.title.label_tag }} {{ form.title.errors }} {{ form.title }}
{{ form.body.label_tag }} {{ form.body.errors }} {{ form.body }}

Supports Markdown — headings, lists, links, code, tables and more.

{{ form.published }} Publish (visible to everyone)
Cancel
{% endblock %}