Sha256: 9f4a3dd89ebe311d32d22d684ae69766d98d07c7d946ba14ce8e9c18216cda61
Contents?: true
Size: 929 Bytes
Versions: 16
Compression:
Stored size: 929 Bytes
Contents
<% options ||= {} %> <%= content_tag :div, field.html_options do %> <% if field.visible?(form.object) -%> <% if field.nested? -%> <div class="nested"> <div class="title-switcher up"><%= form.label field.name %></div> <%= form.simple_fields_for field.name.to_sym do |nested| %> <%= render :partial => "nested_field", :locals => { :form => nested, :field => field } %> <% end -%> <% if field.multiply? %> <div class="nested_bottom"> <%= manage_add_child_link t('manage.buttons.add_nested_field'), form, field, {:partial=>"nested_field"} %> </div> <% end -%> </div> <% elsif field.association? -%> <%= form.association field.name.to_sym, field.input_options.merge(options) %> <% else -%> <%= form.input field.name, field.input_options.merge(options) %> <% end -%> <% end -%> <% end -%>
Version data entries
16 entries across 16 versions & 1 rubygems