Sha256: 76b6f4a1c972abb66071e2c31b821feef16b366176b0d7cd34763680c16a9f49
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
<div class="field is-horizontal <%= options.delete(:field_class) %>"> <% if has_label %> <div class="field-label <%= options.delete(:field_label_class) || 'is-normal' %>"> <%- label_options[:class] << ' label' %> <%- label_options[:class] << ' required' if html_options.delete(:required) %> <%= label attribute_name, label_text, label_options %> </div> <% end %> <div class="field-body"> <div class="field <%= options.delete(:field_body_field_class) %>"> <div class="control <%= options.delete(:control_class) %>"> <%- html_options[:class] << ' select' %> <%- html_options[:class] << ' is-danger' if errors[attribute_name].present? %> <div class="<%= html_options[:class] %>"> <%= grouped_collection_select( attribute_name, collection, group_method, group_label_method, option_key_method, option_value_method, options, html_options) %> </div> </div> <%- if hint_text.present? %> <p class="help"><%= hint_text %></p> <%- end %> <%- if errors[attribute_name].present? %> <p class="help is-danger"><%= errors.full_messages_for(attribute_name).to_sentence %></p> <%- end %> </div> </div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
template_form-0.4.3 | lib/template_form/templates/bulma_horizontal/grouped_select_input.html.erb |