Adds admin view for individual announcement

This commit is contained in:
Mouse Reeve
2021-05-20 08:09:35 -07:00
parent c73c063949
commit d64e0c4aa8
11 changed files with 92 additions and 32 deletions

View File

@ -0,0 +1,23 @@
{% extends 'settings/admin_layout.html' %}
{% load i18n %}
{% block title %}{% trans "Announcement" %} - {{ announcement.preview }}{% endblock %}
{% block header %}{% trans "Announcement" %}{% 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" %}
</a>
{% endblock %}
{% block panel %}
<div class="block">
{% include 'settings/announcement_form.html' with controls_text="create-announcement" %}
</div>
<div class="block content">
{% include 'snippets/announcement.html' with announcement=announcement pressed=True %}
</div>
{% endblock %}

View File

@ -45,5 +45,5 @@
{% endfor %}
</table>
{% include 'snippets/pagination.html' with page=servers path=request.path %}
{% include 'snippets/pagination.html' with page=announcements path=request.path %}
{% endblock %}