Sha256: 02dc2d5c42b1956bedf7b8fc5ca701a2512caa684b26136d94982aa2016d5adb

Contents?: true

Size: 1.43 KB

Versions: 10

Compression:

Stored size: 1.43 KB

Contents

<table cellpadding="0" cellspacing="0">
  <%
    @record = if associated.empty?
      column.association.associated_class.new
    else
      associated.last
    end
  -%>
  <%= render :partial => 'horizontal_subform_header', :locals => {:parent_record => parent_record, :record => @record} %>

  <tbody id="<%= sub_form_list_id(:association => column.name) %>">
    <% associated.each_index do |index| %>
    <% @record = associated[index] -%>
    <% if @record.errors.count -%>
    <tr class="association-record-errors">
      <td colspan="<%= active_scaffold_config_for(@record.class).subform.columns.length + 1 %>" id="<%= element_messages_id :action => @record.class.name.underscore, :id => "#{parent_record.id}-#{index}" %>">
        <%= active_scaffold_error_messages_for :record, :object_name => @record.class.model_name.human.downcase %>
      </td>
    </tr>
    <% end %>
    <%= render :partial => 'horizontal_subform_record', :locals => {:scope => column_scope(column), :parent_record => parent_record, :column => column, :locked => show_blank_record && @record.new? && @record == associated.last} %>
    <% end -%>
  </tbody>
  <tfoot>
    <%= render :partial => 'horizontal_subform_footer', :locals => {:scope => column_scope(column), :parent_record => parent_record, :column => column} %>
  </tfoot>
</table>
<%= render :partial => 'form_association_footer', :locals => {:parent_record => parent_record, :column => column, :associated => associated} -%>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
active_scaffold-sequel-0.8.0 frontends/default/views/_horizontal_subform.html.erb
active_scaffold-sequel-0.7.1 frontends/default/views/_horizontal_subform.html.erb
active_scaffold-sequel-0.7.0 frontends/default/views/_horizontal_subform.html.erb
active_scaffold-sequel-0.6.2 frontends/default/views/_horizontal_subform.html.erb
active_scaffold-sequel-0.6.1 frontends/default/views/_horizontal_subform.html.erb
active_scaffold-sequel-0.6.0 frontends/default/views/_horizontal_subform.html.erb
active_scaffold-sequel-0.5.1 frontends/default/views/_horizontal_subform.html.erb
active_scaffold-sequel-0.5.0 frontends/default/views/_horizontal_subform.html.erb
active_scaffold-sequel-0.4.0 frontends/default/views/_horizontal_subform.html.erb
active_scaffold-sequel-0.3.0 frontends/default/views/_horizontal_subform.html.erb