Sha256: ff6504e2260fabe9a25b1e5ed7098e0df43d9356ec7a62817a512980b2ce6c94

Contents?: true

Size: 606 Bytes

Versions: 26

Compression:

Stored size: 606 Bytes

Contents

        <fieldset>
          <legend><%= field.label %></legend>
          <%= (field.required ? content_tag('span', ' *', :class => 'required') : '') %>
          <span class="radio-wrapper">
<%       field.options.split(',').each do |option|
           option.strip! %>
            <span class="radio">
              <%= f.radio_button field.underscored_name, option, :checked => (option == form_response.send(field.underscored_name)) %>
              <%= f.label "#{field.underscored_name}_#{option.parameterize('_')}", option %>
            </span>
<%       end %>
          </span>
        </fieldset>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
noodall-form-builder-0.5.4 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.5.3 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.5.2 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.5.0 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.4.2 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.4.1 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.4.0 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.3.3 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.2.11 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.3.2 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.3.1 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.3.0 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.2.10 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.2.9 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.2.8 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.2.7 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.2.5 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.2.4 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.2.3 app/views/noodall/form_responses/fields/_radio.html.erb
noodall-form-builder-0.2.2 app/views/noodall/form_responses/fields/_radio.html.erb