{% extends "misago/admin/generic/list.html" %} {% load i18n misago_admin_form misago_capture %} {% block page-actions %}
{% trans "New agreement" %}
{% endblock %} {% block table-header %}   {% trans "Agreement" %}   {% trans "Type" %} {% trans "Created" %} {% trans "Modified" %}   {% endblock table-header %} {% block table-row %} {% if item.is_active %} {% endif %} {{ item.get_final_title }} {% if item.is_active %} {% trans "Active" %} {% endif %} {{ item.get_type_display }} {% capture trimmed as created_on %} {% endcapture %} {% capture trimmed as created_by %} {% if item.created_by %} {{ item.created_by }} {% else %} {{ item.created_by_name }} {% endif %} {% endcapture %} {% blocktrans trimmed with created_on=created_on|safe created_by=created_by|safe %} {{ created_on }} by {{ created_by }} {% endblocktrans %} {% if item.last_modified_on %} {% capture trimmed as last_modified_on %} {{ item.last_modified_on }} {% endcapture %} {% capture trimmed as last_modified_by %} {% if item.last_modified_by %} {{ item.last_modified_by }} {% else %} {{ item.last_modified_by }} {% endif %} {% endcapture %} {% blocktrans trimmed with last_modified_on=last_modified_on|safe last_modified_by=last_modified_by|safe %} {{ last_modified_on }} by {{ last_modified_by }} {% endblocktrans %} {% else %} {% trans "never" %} {% endif %} {% endblock %} {% block blankslate %} {% if active_filters %} {% trans "No agreements matching criteria exist." %} {% else %} {% trans "No agreements are set." %} {% endif %} {% endblock blankslate %} {% block javascripts %} {{ block.super }} {% endblock %} {% block filters-modal-body %}
{% form_row filter_form.type %}
{% form_row filter_form.content %}
{% endblock filters-modal-body %}