% obj.attributesTemplate = function(attributes) {
_.each(attributes, function(attribute, name) { %>
<%= name %><% if (!_.isNull(attribute)) { %>="<%= attribute %>"<% } %>
<% });
} %>
<% if (links) { %>
<% } %>
<<%= tagName %>
<% if (tagName == "a") { %> href="<%= link %>"<% } %>
class="action
<%= className ? " " + className : "" %>
<%= !enabled ? " disabled" : "" %>
<% if (links) { %> dropdown-toggle<% } %>
"
<% attributesTemplate(attributes) %>
title="<%= title %>"
<% if (links) { %> data-toggle="dropdown"<% } %>>
<% if (icon) { %>
<%= label %><% if (!iconHideText) { %><%= label %><% } %>
<% } else { %>
<% if (iconClassName) { %><% } %>
<%= label %>
<% } %>
<% if (links) { %><% } %>
<%= tagName %>>
<% if (links) { %>
<% } %>