Sha256: 898a31bd66cb852c2466f2cc3a435de61d902a93401c6ebaf1f26d11d1752fca
Contents?: true
Size: 1.13 KB
Versions: 13
Compression:
Stored size: 1.13 KB
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-12"> <span class="form-check form-check-inline"> <%= form.radio_button field_name, true, class: 'form-check-input' %> <%= form.label field_name, 'Yes', value: true, class: 'form-check-label' %> </span> <span class="form-check form-check-inline"> <%= form.radio_button field_name, false, class: 'form-check-input' %> <%= form.label field_name, 'No', value: false, class: 'form-check-label' %> </span> </div> </div> <%= form.error_messages field_name %> <%= hint_of metadata %> </div>
Version data entries
13 entries across 13 versions & 1 rubygems