{% extends 'news/base.html' %} {% load bootstrap %} {% block pagetitle %}: News Management{% endblock pagetitle %} {% block breadcrumb_items %} {{ block.super }} News Management {% endblock %} {% block content %}

News Management

NewsCollections

Add a NewsCollection

{% for nc in newscollections %}
View this NewsCollection in a separate window

News Items included in this NewsCollection:

    {% for nt in nc.newscollectionnewsitemstable_set.all|dictsort:'order' %}
  • {{ nt.newsitem }}{% if not nt.newsitem.published %} WARNING: unpublished{% endif %}
  • {% empty %}
  • No associated NewsItems found
  • {% endfor %}

Actions:

{% endfor %}

News items

Add a News item

{% for ni in newsitems %} {% endfor %}
Item Publication date Published? On homepage? Actions
{{ ni.headline }} {{ ni.date }} {% if ni.published %}{% include 'bi/check-square-fill.html' %}{% else %}{% include 'bi/x-square-fill.html' %}{% endif %} {{ ni.published|yesno:'Yes,No' }} {% if ni.on_homepage %}{% include 'bi/check-square-fill.html' %}{% else %}{% include 'bi/x-square-fill.html' %}{% endif %} {{ ni.on_homepage|yesno:'Yes,No' }} Update · Delete
{% endblock content %}