Sha256: 4d2231f52bf1426cdc3fc8934b6c3f77d79b43ae79c33004cd3e1d42a5e863a0
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 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] %>"> <%= 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
template_form-0.4.3 | lib/template_form/templates/bulma_horizontal/select_input.html.erb |