<% var picker_id = (pickerAttributes['id'] != null ? 'id="' + pickerAttributes['id'] + '"' : ''); var picker_class = (pickerAttributes['class'] != null ? pickerAttributes['class'] + ' ' : ''); var picker_attr = ''; if (pickerAttributes['attr']) { _.each(pickerAttributes['attr'], function(value, key) { picker_attr += ' ' + key + '="' + value + '"'; }); } %>
class="picker btn-group <%= picker_class %>" <%= picker_attr %>>