Sha256: 9cee8276b00700f1d4f92f06479abfba957abf3a52d09e92d07a76a88a51c88f

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 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 %>
  <%= select_tag field.name, options_for_select(field.options.invert, field.value), field.input_attributes %>
  
  <% 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/_select_field.html.erb
hungryform-rails-0.0.5 app/views/hungryform/_select_field.html.erb