Sha256: be3a25954f010af7542aa728d5b85d1b4651f45309c34fb39374324a7022457d
Contents?: true
Size: 1.25 KB
Versions: 7
Compression:
Stored size: 1.25 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] %>"> <%= collection_select( attribute_name, collection, value_method, text_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