<% function Button(text, role, isMain, color, single) { if (text !== '') { %><%= text %><% } } %>
<% if (typeof(title) === 'string') { %>

<%- title %>

<% } %> <% if (typeof(text) === 'string') { %>

<%- text %>

<% } %>
<% if (typeof(label) === 'string') { %> <% } %> > <% if (typeof(description) === 'string') { %>

<%- description %>

<% } %>
<% /* Порядок кнопок может задаваться */ %>
<% if (invert) { Button(ok, 'ok', true, color, ! hasCancel); if (hasCancel) { Button(cancel, 'cancel', false, 'ul-button-blueSecondary'); } } else { if (hasCancel) { Button(cancel, 'cancel', false, 'ul-button-blueSecondary'); } Button(ok, 'ok', true, color, ! hasCancel); } %>