{% extends 'admin_panel/base.html' %} {% load static %} {% block page_title %}Manajemen Pengumuman{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Manajemen Pengumuman

Kelola dan pantau semua pengumuman

{{ announcements.paginator.count|default:0 }} Total Pengumuman
{{ published_announcements|default:0 }} Dipublikasi
{{ draft_announcements|default:0 }} Draft
{{ pinned_announcements|default:0 }} Dipin
Filter & Pencarian
Reset
{% for announcement in announcements %}
{% if announcement.status == 'published' %}Dipublikasi{% else %}Draft{% endif %} {{ announcement.get_priority_display }} {% if announcement.is_summonote %} Summonote {% endif %}

{{ announcement.content|striptags|truncatewords:30 }}

{{ announcement.get_announcement_type_display }}
{{ announcement.author.username }}
{{ announcement.start_date|date:"d M Y" }}
{% if announcement.target_audience or announcement.location or announcement.is_popup %}
{% if announcement.target_audience %}
{{ announcement.target_audience|truncatechars:20 }}
{% endif %} {% if announcement.location %}
{{ announcement.location|truncatechars:20 }}
{% endif %} {% if announcement.is_popup %}
Popup
{% endif %}
{% endif %}
{% empty %}

Tidak ada pengumuman ditemukan

Belum ada pengumuman yang sesuai dengan filter yang dipilih.

Tambah Pengumuman
{% endfor %}
{% if announcements.has_other_pages %}
    {% if announcements.has_previous %}
  • {% endif %} {% for num in announcements.paginator.page_range %} {% if announcements.number == num %}
  • {{ num }}
  • {% elif num > announcements.number|add:'-3' and num < announcements.number|add:'3' %}
  • {{ num }}
  • {% endif %} {% endfor %} {% if announcements.has_next %}
  • {% endif %}
{% endif %}
Konfirmasi Hapus

Apakah Anda yakin ingin menghapus pengumuman ?

Tindakan ini tidak dapat dibatalkan.
{% endblock %} {% block extra_js %} {% endblock %}