Sha256: 0aaf61422a865d32d6ff3ba48360e854aa8d8f6f92cc4e49a0ba948bb6126bb8

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 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 :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

6 entries across 6 versions & 1 rubygems

Version Path
active_scaffold_batch-3.4.0 app/views/active_scaffold_overrides/_batch_create_form_horizontal_record.html.erb
active_scaffold_batch-3.3.4 app/views/active_scaffold_overrides/_batch_create_form_horizontal_record.html.erb
active_scaffold_batch-3.3.3 app/views/active_scaffold_overrides/_batch_create_form_horizontal_record.html.erb
active_scaffold_batch-3.3.2 app/views/active_scaffold_overrides/_batch_create_form_horizontal_record.html.erb
active_scaffold_batch-3.3.1 app/views/active_scaffold_overrides/_batch_create_form_horizontal_record.html.erb
active_scaffold_batch-3.3.0 app/views/active_scaffold_overrides/_batch_create_form_horizontal_record.html.erb