Sha256: e9fe5adca4fc356d7fc4e518cc7507a8885e1a005a062aa0552d1c1f5163ec6d
Contents?: true
Size: 826 Bytes
Versions: 13
Compression:
Stored size: 826 Bytes
Contents
<%# The following params are the variables that can be used in this partial. @param form [Wallaby::FormBuilder] custom form object that adds a few helper methods and delegate missing methods to the view @param object [Wallaby::ResourceDecorator] decorator instance which wraps the resource (e.g. ActiveRecord) instance @param field_name [String] name of the field @param value [Object] value of the field @param metadata [Hash] metadata of the field %> <div class="form-group <%= form.error_class field_name %>"> <%= form.label field_name, metadata[:label] %> <div class="row"> <div class="col-6 col-sm-4"> <%= form.select field_name, metadata[:sti_class_list].map(&:sti_name).sort!, { }, { class: 'form-control' } %> </div> </div> <%= form.error_messages field_name %> <%= hint_of metadata %> </div>
Version data entries
13 entries across 13 versions & 1 rubygems