{% extends 'settings/layout.html' %} {% load i18n %}{% load humanize %} {% block title %}{% trans "Announcement" %} - {{ announcement.preview }}{% endblock %} {% block header %} {% trans "Announcement" %} {% trans "Back to list" %} {% endblock %} {% block edit-button %} {% trans "Edit Announcement" as button_text %}
{% include 'snippets/toggle/open_button.html' with controls_text="edit_announcement" icon_with_text="pencil" text=button_text focus="edit_announcement_header" %}
{% csrf_token %}
{% endblock %} {% block panel %} {% include 'settings/announcements/announcement_form.html' with controls_text="edit_announcement" %}

{% trans "Visible:" %}
  {% if announcement in active_announcements %} {% trans "True" %} {% else %} {% trans "False" %} {% endif %}
{% if announcement.start_date %}
{% trans "Start date:" %}
  {{ announcement.start_date|naturalday }}
{% endif %} {% if announcement.end_date %}
{% trans "End date:" %}
  {{ announcement.end_date|naturalday }}
{% endif %}
{% trans "Active:" %}
  {{ announcement.active }}

{% include 'snippets/announcement.html' with announcement=announcement pressed=True admin_mode=True %}
{% endblock %}