Sha256: 218ab446190bf19bd78f8091294fbb6d295d8b52e771ba1d2e9a9a98aae60a39

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

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

  <div class="checkbox">
    <%= label_tag '' do %>
      <%= hidden_field_tag field.name, 0 %>
      <%= check_box_tag field.name, 1, field.checked?, field.input_attributes %>
      <%= field.label << ("*" if field.required?).to_s %>
    <% end -%>
  </div>

  <% 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/_checkbox_field.html.erb
hungryform-rails-0.0.5 app/views/hungryform/_checkbox_field.html.erb