Sha256: d0366fa5f78ac41555ae7ba660fd60e19c5c45d29f49ebe8a545b3fc3359ea1e
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"> <%= hidden_field_tag("batch_scope", (batch_scope || 'LISTED')) %> </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_create_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_create_form_body.html.erb |