Sha256: af8b1c034b08c5c37965f063bec004e4ff8c93a1baa93e8e87dd3bd341048d9d
Contents?: true
Size: 1.15 KB
Versions: 11
Compression:
Stored size: 1.15 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"> <%= hidden_field_tag("batch_scope", (batch_scope || 'LISTED')) %> </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_create_form_attribute', :locals => { :column => column } -%> </li> <% end -%> <% end -%> </ol>
Version data entries
11 entries across 11 versions & 2 rubygems