<%# 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 %>
<%= form.label field_name, metadata[:label] %>
<%= form.select field_name, metadata[:sti_class_list].map(&:sti_name).sort!, { }, { class: 'form-control' } %>
<%= form.error_messages field_name %> <%= hint_of metadata %>