Sha256: bf042dea3af5765f25553f308cb303260158bd8fd9bb4dcd1a0f590a55d7a661
Contents?: true
Size: 466 Bytes
Versions: 10
Compression:
Stored size: 466 Bytes
Contents
<% label = local_assigns[:label].presence %> <% html_options = {class: 'custom-select fullwidth'}.update(local_assigns[:html_options] || {}) %> <% options = form.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
10 entries across 10 versions & 2 rubygems