{# Шаблон Underscore #} <% if (!mfoot.buttons) { %> <% } else { %> <% _.each(mfoot.buttons, function(button) { %> <% if (button.action == 'modal_close') { %> <% } else if ((!button.action == "object_add") || (button.model.perms.add)) { %> data-dismiss="modal" aria-hidden="true" <% } %> data-action="<%= button.action %>" data-id="<%= button.model.id %>" class="btn <%= button.css %>"> <%= button.label %> <% } %> <% }); %> <% } %>