{# Шаблон 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 %>
<% } %>
<% }); %>
<% } %>