Sha256: 62d33e1364641907dea8cc06e4e80b7ecb5d3ff2dcd0afb89dc08cafc11c8a28

Contents?: true

Size: 1.03 KB

Versions: 8

Compression:

Stored size: 1.03 KB

Contents

<% first = true unless local_assigns.has_key? :first -%>
<% if record.errors.count -%>
<tr class="form_record-errors">
  <td colspan="<%= columns.length + 1 %>" id="<%= element_messages_id :action => record.class.name.underscore %>">
    <%= active_scaffold_error_messages_for :record, :object_name => record.class.model_name.human.downcase %>
  </td>
</tr>
<% end %>
<tr class="form_record">
<% columns.each_column(flatten: true) do |column| -%>
<%
  next if column_renders_as(column) == :hidden
  next unless record.authorized_for?(:crud_type => :create, :column => column.name) 
  column = column.clone
  column.form_ui ||= :select if column.association
  
  col_class = []
  col_class << 'required' if column.required?
  col_class << column.css_class unless column.css_class.nil?
-%>
  <td class="<%= col_class.join(' ') %>">
    <%= render :partial => form_partial_for_column(column), :locals => { :column => column, :scope => scope, :record => record } -%>
  </td>
<% end -%>
  <td><%= batch_create_multiple_remove_link unless first %></td>
</tr>

Version data entries

8 entries across 8 versions & 1 rubygems

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