Sha256: d72600f18aa10e73cf8b55fbcf87a18ce76214177b4712f977183c33f24e7e43

Contents?: true

Size: 1.14 KB

Versions: 8

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_column(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

8 entries across 8 versions & 1 rubygems

Version Path
active_scaffold_batch-3.5.2 app/views/active_scaffold_overrides/_batch_update_form_body.html.erb
active_scaffold_batch-3.5.1 app/views/active_scaffold_overrides/_batch_update_form_body.html.erb
active_scaffold_batch-3.5.0 app/views/active_scaffold_overrides/_batch_update_form_body.html.erb
active_scaffold_batch-3.4.5 app/views/active_scaffold_overrides/_batch_update_form_body.html.erb
active_scaffold_batch-3.4.4 app/views/active_scaffold_overrides/_batch_update_form_body.html.erb
active_scaffold_batch-3.4.3 app/views/active_scaffold_overrides/_batch_update_form_body.html.erb
active_scaffold_batch-3.4.2 app/views/active_scaffold_overrides/_batch_update_form_body.html.erb
active_scaffold_batch-3.4.1 app/views/active_scaffold_overrides/_batch_update_form_body.html.erb