{% 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 breadcrumbs %} {% if parent %} {% include "./widgets/breadcrumbs.html" with page=parent %} {% if page %} {{ page|verbose_name:True }} {% endif %} {% elif page %} {% include "./widgets/breadcrumbs.html" with page=page no_title=True %} {% endif %} {% endblock %} {% block main %} {{ block.super }} {% block related %} {% if related_objects %} {% with models=object|verbose_name:True %} {% blocktranslate %}Related {{models}}{% endblocktranslate %} {% include "./widgets/carousel.html" with objects=related_objects url_name=object.list_url_name url_category=object.category %} {% endwith %} {% 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.label_tag }} {{ field }} {% if field.errors %} {{ field.errors }} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %} {% endfor %} {% translate "Post comment" %} {% endif %} {% endblock %} {% endblock %}
{{ field.errors }}
{{ field.help_text|safe }}