Sha256: 19f28ffa07a50d09ba49dd10f78964016ffc54e8ffaaf7dd08b9602c8c3cfa99
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 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 unless column.association.nil? || column.association.belongs_to? %> <% 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.association.try(:readonly?) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_scaffold_batch-3.4.0 | app/views/active_scaffold_overrides/_batch_update_form_body.html.erb |