{# Required Context Variables: MODEL, MANAGER, OBJECT #} {% extends "box.html" %} {% block box_content %} {% import "widgets/action.html" as Action%} {% set field_group=MODEL._meta.field_groups[PARAMS['group_name']] %}

{% if MODEL._meta.profile %} {% if not field_group or field_group.name == 'default' %} {{ MODEL._meta.verbose_name }} {% else %} {{ MODEL._meta.verbose_name }} - {{ field_group.verbose_name }} {% endif %} {% else %} {% if field_group %} {{ OBJECT.repr() }} - {{ field_group.verbose_name }} {% else %} {{ OBJECT.repr() }} {% endif %} {% endif %}

{% for field in field_group.fields %} {% set related_actions = field.related_actions(OBJECT) %} {% if related_actions %} {% if SESSION.allow_config %}
{{ Action.ActionButton(field.name, related_actions) }}
{% endif %} {% endif %}
{{ getattr(OBJECT, field.name) }}
{% endfor %}
{% endblock box_content %} {% block box_script %} {% if 0 %} {% endif %} {% endblock %}