{% extends "aircox/basepage_detail.html" %} {% load static i18n humanize honeypot aircox %} {% comment %} Base template used to display a Page Context: - page: page - parent: parent page - related_objects: list of object to display as related publications - related_url: url to the full list of related_objects {% endcomment %} {% block top-nav-tools %} {% has_perm page "change" as can_edit %} {% if can_edit %}   {% translate "Edit" %} {% endif %} {% endblock %} {% block main %} {{ block.super }} {% block related %} {% if related_objects %}
{% with models=object|verbose_name:True %}

{% blocktranslate %}Related {{models}}{% endblocktranslate %}

{% endwith %} {% for object in related_objects %} {% page_widget "card" object %} {% endfor %} {% if related_url %} {% endif %} {% endif %} {% endblock %} {% block comments %} {% if comments %}

{% translate "Comments" %}

{% for object in comments %}
{% page_widget "item" object %}
{% endfor %}
{% endif %} {% if comment_form %}

{% translate "Post a comment" %}

{% csrf_token %} {% render_honeypot_field "website" %} {% for field in comment_form %}
{{ field }}
{% if field.errors %}

{{ field.errors }}

{% endif %} {% if field.help_text %}

{{ field.help_text|safe }}

{% endif %}
{% endfor %}
{% endif %} {% endblock %} {% endblock %}