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

<%- title %>

<% } %> <% if (hasDesc) { %>

<%- desc %>

<% } %> <% /* Button order is optional */ %>
<% 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); } %>