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

{% for pk in model_view.pk_columns -%} {{ pk.name }} {%- if not loop.last %};{% endif -%} {% endfor %}: {{ get_object_identifier(model) }}

{% for name in model_view._details_prop_names %} {% set label = model_view._column_labels.get(name, name) %} {% set value, formatted_value = model_view.get_detail_value(model, name) %} {% if name in model_view._relation_names %} {% if is_list( value ) %} {% else %} {% endif %} {% else %} {% endif %} {% endfor %}
Column Value
{{ label }} {% 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=' + (get_object_identifier(model) | string) %} {% include 'modals/details_action_confirmation.html' %} {% endwith %} {% endif %} {% endfor %} {% endblock %}