Sha256: 4e8e1067d3ff777fdf125cefdece12dc55e8b67eeec77842a516bbabb934150b

Contents?: true

Size: 712 Bytes

Versions: 24

Compression:

Stored size: 712 Bytes

Contents

<%
associated_form = render :partial => "#{subform_partial_for_column(@column)}_record", :locals => {:scope => @scope, :parent_record => @parent_record, :column => @column, :locked => @record.new_record? && @column.singular_association?}
options = {:singular => false}
if @column.singular_association?
  options[:singular] = true
else
  unless @record.new_record?
    column = active_scaffold_config_for(@record.class).columns[@record.class.primary_key]
    options[:id] = active_scaffold_input_options(column, @scope)[:id]
  end
end %>
ActiveScaffold.create_associated_record_form('<%=sub_form_list_id(:association => @column.name)%>','<%=escape_javascript(associated_form)%>', <%=options.to_json.html_safe%>);

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
active_scaffold_vho-4.0.0 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.14 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.13 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.12 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.11 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.10 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.9 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.8 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.7 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.6 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.5 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.4 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.3 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.2 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.1 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.2.0 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.1.8 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.1.6 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.1.5 frontends/default/views/edit_associated.js.erb
active_scaffold_vho-3.1.4 frontends/default/views/edit_associated.js.erb