Sha256: 443de9ed046e00191a1f2bbf2685dcd00373387786601d7b70302930697b14e5

Contents?: true

Size: 602 Bytes

Versions: 11

Compression:

Stored size: 602 Bytes

Contents

E9CRM = window.E9CRM || {};
E9CRM.js_templates = {};
E9CRM.js_templates.start_child_index = 
E9CRM.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| %>
E9CRM.js_templates.<%= association_name %> = "<%= escape_javascript(record_attribute_template(association_name, association_form_builder)) %>";
    <% end %>
  <% end %>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
e9_crm-0.1.14 app/views/e9_crm/record_attributes/_templates.js.erb
e9_crm-0.1.13 app/views/e9_crm/record_attributes/_templates.js.erb
e9_crm-0.1.12 app/views/e9_crm/record_attributes/_templates.js.erb
e9_crm-0.1.11 app/views/e9_crm/record_attributes/_templates.js.erb
e9_crm-0.1.10 app/views/e9_crm/record_attributes/_templates.js.erb
e9_crm-0.1.8 app/views/e9_crm/record_attributes/_templates.js.erb
e9_crm-0.1.7 app/views/e9_crm/record_attributes/_templates.js.erb
e9_crm-0.1.6 app/views/e9_crm/record_attributes/_templates.js.erb
e9_crm-0.1.5 app/views/e9_crm/record_attributes/_templates.js.erb
e9_crm-0.1.4 app/views/e9_crm/record_attributes/_templates.js.erb
e9_crm-0.1.1 app/views/e9_crm/record_attributes/_templates.js.erb