Sha256: 73cb74dee74a487f22c73aac4e6720ebe5560baa0b3b6e25de513615d756d376
Contents?: true
Size: 933 Bytes
Versions: 6
Compression:
Stored size: 933 Bytes
Contents
<%# # Select Form Partial This partial renders a selectable text attribute, to be displayed on a resource's edit form page. ## Local variables: - `f`: A Rails form generator, used to help create the appropriate input fields. - `field`: An instance of [Administrate::Field::Select][1]. A wrapper around the attribute pulled from the database. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Select %> <div class="mb-4"> <%= f.label field.attribute, class: "block text-sm font-medium text-gray-700" %> <div class="mt-1"> <%= f.select( field.attribute, options_for_select( field.selectable_options, field.data, ), { include_blank: field.include_blank_option }, { class: "form-select block w-full py-2 px-3 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" } ) %> </div> </div>
Version data entries
6 entries across 6 versions & 1 rubygems