Sha256: e8ae83ccd5888cf1b9789a1763df974eaf1274ecad65607d09500b03c0638436
Contents?: true
Size: 462 Bytes
Versions: 20
Compression:
Stored size: 462 Bytes
Contents
<% label = local_assigns[:label].presence %> <% html_options = {class: 'custom-select fullwidth'}.update(local_assigns[:html_options] || {}) %> <% options = @object.send("#{attribute}_options") %> <div class="field"> <% if local_assigns[:form] %> <%= form.label attribute, label %> <%= form.select attribute, options, {}, html_options %> <% else %> <%= label_tag name, label %> <%= select_tag name, value, html_options %> <% end %> </div>
Version data entries
20 entries across 20 versions & 1 rubygems