Sha256: 0407c8ef3cbc04d245afa252ceafaa89b698f3e697a5b27b4a92fd85c08ecfcf

Contents?: true

Size: 579 Bytes

Versions: 2

Compression:

Stored size: 579 Bytes

Contents

<%= content_tag :div, id: "#{field.name}_wrapper", class: field.wrapper_class, 'data-dependency' => field.dependency_json do -%>

  <%= label_tag field.name, field.label << ("*" if field.required?).to_s %>

  <% field.options.each do |value, name| %>
    <div class="radio">
      <%= label_tag '' do %>
        <%= radio_button_tag field.name, value, field.value == value, field.input_attributes %>
        <%= name %>
      <% end -%>
    </div>
  <% end -%>

  <% unless field.error.empty? -%>
    <%= content_tag :span, field.error, class: 'error' %>
  <% end -%>

<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hungryform-rails-0.0.6 app/views/hungryform/_radio_group.html.erb
hungryform-rails-0.0.5 app/views/hungryform/_radio_group.html.erb