<div class="form-check form-check-inline">
  <input class="form-check-input" type="radio" name="<%=name%>" id="<%=name%>" value="<%=value%>" <% if (checked) { %> checked <% } %>>
  <label class="form-check-label" for="<%=name%>"><%=label%></label>
</div>