<%
var isEmpty = require("../js/isEmpty").default;

if(!isEmpty(flags)) {
 %>
<label for="<%=id%>">Boolean flags</label>
<ul id="<%=id%>" class="list-unstyled">
<% for (var key in flags) { if (flags.hasOwnProperty(key)) { %>
<li><%= key %>:
    <% if(typeof flags[key] === "boolean") { %>
    <label for="<%= key %>-true-input">True</label> <input id="<%= key %>-true-input" name="<%= key %>" type="radio" value="1"<%if(flags[key]){%> checked<%}%>>
    <label for="<%= key %>-false-input">False</label> <input id="<%= key %>-false-input" name="<%= key %>" type="radio" value="0"<%if(!flags[key]){%> checked<%}%>>
    <% } %>
</li>
<%}
}%>
</ul>
<%}%>