Sha256: 2ef69b896b5a0476498eeb6684f519673611586e63dd6c08c6b9d58cea9fc9df

Contents?: true

Size: 589 Bytes

Versions: 6

Compression:

Stored size: 589 Bytes

Contents

E9A = window.E9A || {};
E9A.js_templates = {};
E9A.js_templates.start_child_index = 
E9A.js_templates.current_child_index = <%= child_index = 100000 %>;
<%= fields_for(resource) do |f| %>
  <% resource_class.record_attributes.each do |association_name| %>
    <% build_associated_resource(association_name) %>
    <%= f.fields_for(association_name, :child_index => child_index) do |association_form_builder| %>
E9A.js_templates.<%= association_name %> = "<%= escape_javascript(record_attribute_template(association_name, association_form_builder)) %>";
    <% end %>
  <% end %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
e9_attributes-0.0.6 app/views/e9_attributes/record_attributes/templates.js.erb
e9_attributes-0.0.5 app/views/e9_attributes/record_attributes/templates.js.erb
e9_attributes-0.0.4 app/views/e9_attributes/record_attributes/templates.js.erb
e9_attributes-0.0.3 app/views/e9_attributes/record_attributes/templates.js.erb
e9_attributes-0.0.2 app/views/e9_attributes/record_attributes/templates.js.erb
e9_attributes-0.0.1 app/views/e9_attributes/record_attributes/templates.js.erb