Sha256: 968f05985a730ab56da3226316fc15bd590ca800e8cc157edf9c37ab2c563cd6
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
<!-- label for="<%= field.css_id %>"><%= field.label -%> <% if field.required? -%> <abbr class="required" title="<%= t 'aerogel.forms.required' %>">*</abbr> <% end -%> </label --> <div class="input-group"> <div class="btn-group" data-toggle="buttons"> <% unless field.required? %> <label class="btn btn-default btn-sm <%= field.value.blank? ? 'active' : '' %>"> <input type="radio" class="form-control" name="<%= field.html_name %>" id="<%= field.css_id %>-11" value <%= field.value.blank? ? 'checked=""' : '' %>> <%= icon 'fa-times' %> </label> <% end %> <% field.options[:values].each_with_index do |value, i| %> <label class="btn btn-default btn-sm <%= value.to_s == field.value.to_s ? 'active' : '' %>" > <input type="radio" class="form-control" name="<%= field.html_name %>" id="<%= field.css_id %>-11" value="<%= h value %>" <%= value.to_s == field.value.to_s ? 'checked=""' : '' %>> <%= field.options[:labels].present? ? ( field.options[:labels][i] ) : h( value ) %> </label> <% end %> </div> </div>
Version data entries
3 entries across 3 versions & 1 rubygems