{# Шаблон Underscore #}{% load bwp_verbatim %}{% verbatim %}
{% if (data.composes.length >0) { %}
{% _.each(data.composes, function(compose) { %} {%/* Если объект не сохранён в DB, то запрещаем операции с вложениями */%} {% var _compose_btn_class = ''; if (compose.is_m2m) { _compose_btn_class = 'btn-info'} %} {% }); %}
{% if ((data.model.object_reports) && (data.pk)) { %} {% }; %}
{% } %}
{% _.each(data.composes, function(compose) { %}
{% endverbatim %}
загрузка данных...
{% verbatim %}
{% }); %}

{{ data.label }} {{ data.pk }}

{% endverbatim %} {% include "bwp/underscore/_object_fields.html" %}
{% include "bwp/underscore/_button_delete.html" %} {% include "bwp/underscore/_button_reset.html" %} {% include "bwp/underscore/_button_copy.html" %} {% include "bwp/underscore/_button_apply.html" %} {% include "bwp/underscore/_button_save.html" %}