{% extends "layout.html" %} {% block content %}

{{ model_view.pk_column.name }}: {{ model_view.get_prop_value(model, model_view.pk_column) }}

{% for name, prop in model_view._details_props %} {% set value, formatted_value = model_view.get_detail_value(model, prop) %} {% if prop in model_view._relation_props %} {% if is_list( value ) %} {% else %} {% endif %} {% else %} {% endif %} {% endfor %}
Column Value
{{ name }} {% for elem, formatted_elem in zip(value, formatted_value) %} ({{ formatted_elem }}) {% endfor %} {{ formatted_value }}{{ formatted_value }}
{% if model_view.can_delete %} {% include 'modals/delete.html' %} {% endif %} {% for custom_action in model_view._custom_actions_in_detail %} {% if custom_action in model_view._custom_actions_confirmation %} {% with confirmation_message = model_view._custom_actions_confirmation[custom_action], custom_action=custom_action, url=model_view._url_for_action(request, custom_action) + '?pks=' + (model_view._get_pk(model) | string) %} {% include 'modals/details_action_confirmation.html' %} {% endwith %} {% endif %} {% endfor %} {% endblock %}