From 3d70a36d86f6f114c9e3ee8204bf26e449024db5 Mon Sep 17 00:00:00 2001
From: Mouse Reeve
diff --git a/bookwyrm/templates/settings/announcement.html b/bookwyrm/templates/settings/announcement.html
index 57b4d167..9c367fa6 100644
--- a/bookwyrm/templates/settings/announcement.html
+++ b/bookwyrm/templates/settings/announcement.html
@@ -1,22 +1,59 @@
{% extends 'settings/admin_layout.html' %}
-{% load i18n %}
+{% load i18n %}{% load humanize %}
{% block title %}{% trans "Announcement" %} - {{ announcement.preview }}{% endblock %}
-{% block header %}{% trans "Announcement" %}{% 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="create-announcement" icon_with_text="plus" text=button_text focus="create-announcement-header" %}
+{% 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 'snippets/announcement.html' with announcement=announcement pressed=True %}
- - {{ form.content }} - {% for error in form.content.errors %} -
{{ error | escape }}
- {% endfor %} - -- - - {% for error in form.event_date.errors %} -
{{ error | escape }}
- {% endfor %} - - -- - - {% for error in form.start_date.errors %} -
{{ error | escape }}
- {% endfor %} - -- - - {% for error in form.end_date.errors %} -
{{ error | escape }}
- {% endfor %} - -- - {{ form.active }} - {% for error in form.active.errors %} -
{{ error | escape }}
- {% endfor %} - -+ + {{ form.preview }} + {% for error in form.preview.errors %} +
{{ error | escape }}
+ {% endfor %} + ++ + {{ form.content }} + {% for error in form.content.errors %} +
{{ error | escape }}
+ {% endfor %} + ++ + + {% for error in form.event_date.errors %} +
{{ error | escape }}
+ {% endfor %} + + ++ + + {% for error in form.start_date.errors %} +
{{ error | escape }}
+ {% endfor %} ++ + + {% for error in form.end_date.errors %} +
{{ error | escape }}
+ {% endfor %} + ++ + {{ form.active }} + {% for error in form.active.errors %} +
{{ error | escape }}
+ {% endfor %} + +