{% extends "admin/base.html" %} {% from "admin/macros/forms.html" import csrf %} {% from "admin/macros/widgets.html" import widget %} {% from "admin/macros/cells.html" import cell_text %} {% from "admin/macros/history.html" import entry_item %} {% from "admin/macros/comments.html" import card as comment_card %} {% block title %}{{ title }}{% endblock %} {% block content %} {% if errors.get('__all__') %}
{% endif %}
{{ csrf(csrf_token) }}
{% for fieldset in form_layout %} {% if 'collapse' in fieldset.classes %}
{{ fieldset.title or 'More options' }} {% else %}
{% if fieldset.title %} {{ fieldset.title }}{% endif %}{% endif %} {% if fieldset.description %}

{{ fieldset.description }}

{% endif %} {% for row in fieldset.rows %}
{% for spec in row %}
{% if readonly or spec.readonly %}
{{ spec.label }}
{{ cell_text(readonly_cells.get(spec.name)) }}
{% if spec.help_text %}{{ spec.help_text }}{% endif %}
{% else %} {{ widget(spec, values.get(spec.name, ''), errors.get(spec.name), choices.get(spec.name, []), readonly or spec.readonly, autocomplete_url=autocomplete_urls.get(spec.name, ''), file_url=file_urls.get(spec.name, '')) }} {% endif %}
{% endfor %}
{% endfor %} {% if 'collapse' in fieldset.classes %}
{% else %}{% endif %} {% endfor %}
{% include "admin/model/inlines.html" %} {% if not readonly %}
{% if can_add %}{% endif %} {% if can_continue %}{% endif %} {% if can_add and not is_add %}{% endif %}
{% endif %}
{% if history or comments %}
{% if comments %}{{ comment_card(comments) }}{% endif %} {% if history %}

History {{ history.count }}

{% if not history.entries %}
No changes recorded yet.
{% endif %} {% for entry in history.entries %} {{ entry_item(entry) }} {% endfor %}
{% endif %}
{% endif %}
{% endblock %}