{% extends 'settings/admin_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="plus" text=button_text focus="edit-announcement-header" %} {% endblock %} {% block panel %}
{% include 'settings/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 %}
{% endblock %}