Sha256: eebcee31ca60e7b67fa93f567e62c9bfe5132b8e0a234666a959e3e34a300b7d
Contents?: true
Size: 1.17 KB
Versions: 5
Compression:
Stored size: 1.17 KB
Contents
<% subsection_id ||= nil %> <ol class="form" <%= "id=#{subsection_id}" unless subsection_id.nil? %> <%= 'style="display: none;"' if columns.collapsed -%>> <li class="form-element"> <%= render :partial => 'batch_update_form_attribute_scope' -%> </li> <% columns.each :for => @record do |column| %> <% next if column.plural_association? || (column.association && [:has_one].include?(column.association.macro)) %> <% renders_as = column_renders_as(column) %> <% if renders_as == :subsection -%> <% subsection_id = sub_section_id(:sub_section => column.label) %> <li class="sub-section"> <h5><%= column.label %></h5> <%= render :partial => 'form', :locals => { :columns => column, :subsection_id => subsection_id } %> <%= link_to_visibility_toggle(subsection_id, :default_visible => !column.collapsed) -%> </li> <% elsif column.readonly_association? next %> <% else renders_as = :field if renders_as == :subform -%> <li class="form-element <%= column.css_class unless column.css_class.nil? %>"> <%= render :partial => 'batch_update_form_attribute', :locals => { :column => column, :record => @record } -%> </li> <% end -%> <% end -%> </ol>
Version data entries
5 entries across 5 versions & 1 rubygems