{# Шаблон Underscore #}
<% /* Если объект не сохранён в DB, то запрещаем операции с вложениями */ %> <% if (data.pk && data.composes.length > 0) { %> <% _.each(data.composes, function(compose) { %> <% var _compose_btn_class = compose.is_m2m ? 'btn-info' : 'btn-default' %> <% }); %> <% } %>
<% if ((data.model.object_reports) && (data.pk)) { %> <% }; %>
<% _.each(data.composes, function(compose) { %>
<% }); %>
{% 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" %}