{% extends "admin/core/base.html" %} {% load static %} {% load foundation %} {% load bool_fa %} {% get_current_language as LANGUAGE_CODE %} {% get_language_info for LANGUAGE_CODE as language_info %} {% block title %} {% if news_item %} Edit News Item {% else %} Create News Item {% endif %} {% endblock title %} {% block title-section %} {% if news_item %} Edit News Item {% else %} Create News Item {% endif %} {% endblock title-section %} {% block breadcrumbs %} {{ block.super }}
  • Manager
  • News Manager
  • {% if news_item %} Edit Item {% else %} Create Item {% endif %}
  • {% endblock %} {% block body %}

    {% if news_item %} Editing news item #{{ news_item.pk }} {% else %} Creating a new news item {% endif %}

    Go back
    {% include "admin/elements/translations/form_tabs.html" with object=news_item %}
    {% include "elements/forms/errors.html" with form=form %}
    {% csrf_token %} {{ form.title|foundation }} {{ form.body|foundation }} {{ form.start_display|foundation }} {{ form.end_display|foundation }} {{ form.sequence|foundation }} {{ form.image_file|foundation }} {% if not action == 'new' and news_item.large_image_file %}

    Existing image: {{ news_item.large_image_file }} -

    {% endif %} {{ form.custom_byline|foundation }} {{ form.pinned|foundation }}

    Hit Enter to add a new keyword.

    {% if news_item.history %} View History {% endif %}
    {% include 'admin/elements/history_modal.html' with obj=news_item view_url="admin:comms_newsitem_history" %}
    {% endblock body %} {% block js %} {% endblock js %}