{% extends "tungsten/layout/app.html" %} {% import "tungsten/components/ui.html" as ui %} {% block content %} {% set subheading = (__(resource.description) if resource.description else none) if operation == 'create' else ({'edit': __('Update the details below and save your changes.'), 'view': None}[operation]) %} {% set editable = operation in ('create', 'edit') and not trashed %} {% set extra_actions %} {% if editable and not form.has_wizard %} {{ __('Cancel') }} {% endif %} {% endset %} {% include "tungsten/components/page-header.html" %} {% if trashed %}
{{ icon('triangle-alert', 'h-5 w-5') }}{{ __('This record has been deleted. Restore it to make changes.') }}
{% endif %}
{{ form.render() }} {% if editable and not form.has_wizard %}
{% if operation == 'create' %} {% endif %} {{ __('Cancel') }}
{% endif %}
{% if relations %}
{% if relations | length > 1 %} {% endif %} {% for r in relations %}
{% if relations | length == 1 %}

{{ icon(r.manager.icon, 'h-5 w-5 text-gray-400') }}{{ r.manager.get_title() }}

{% endif %} {{ r.table.render() }}
{% endfor %}
{% endif %} {% endblock %}