Sha256: dea0cd5e821d8315ac3b8a445156afb21e65bf395d8a12fda64fe371a7b86f56
Contents?: true
Size: 1.34 KB
Versions: 7
Compression:
Stored size: 1.34 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 <%= html_options.delete(:field_body_field_class) %>"> <div class="control <%= html_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
7 entries across 7 versions & 1 rubygems