Sha256: 26de454cefb73ecd7f3b3ae79d2563ae4d9cac6038f155b9ffaf8b0f9741ba00

Contents?: true

Size: 1.82 KB

Versions: 129

Compression:

Stored size: 1.82 KB

Contents

<div id='crumbtrail'></div>
<h1>Product Alternate IDs</h1>

<p>Alternate IDs are used during import and export processes to associate products from other systems with the products in this system.</p>

<table class='data'>
  <tr>
    <th>Product ID     </th>      
    <th>Variant ID     </th>
    <th>Alternate ID   </th>
    <th>Title          </th>
    <th>Option 1       </th><th>Value 1 </th>
    <th>Option 2       </th><th>Value 2 </th>
    <th>Option 3       </th><th>Value 3 </th>    
  </tr>
  <% @rows.each do |row| %>
    <tr>
      <td><%= row.product_id     %></td>      
      <td><%= row.variant_id     %></td>
      <td><div id='variant_<%= row.variant_id %>_alternate_id'></div></td>
      <td><%= row.title          %></td>
      <td><%= row.option1        %></td>
      <td><%= row.option1_value  %></td>
      <td><%= row.option2        %></td>
      <td><%= row.option2_value  %></td>
      <td><%= row.option3        %></td>
      <td><%= row.option3_value  %></td>      
    </tr>
  <% end %>
</table><br />

<% content_for :caboose_js do %>
<%= javascript_include_tag 'caboose/model/all' %>
<script type='text/javascript'>

$(document).ready(function() {
  var that = this;
  
  // add_to_crumbtrail('/admin', 'Admin');
  // add_to_crumbtrail('/admin/products', 'Products');
  // add_to_crumbtrail('/admin/products/alternate-ids', 'Alternate IDs');
  
  <% @rows.each do |row| %>
  new ModelBinder({
    name: 'Variant',
    id: <%= row.variant_id %>,
    update_url: '/admin/products/<%= row.product_id %>/variants/<%= row.variant_id %>',
    authenticity_token: '<%= form_authenticity_token %>',
    attributes: [      
      { name: 'alternate_id', nice_name: 'Alternate ID', type: 'text', value: <%= raw Caboose.json(row.alternate_id) %>, width: 100, fixed_placeholder: false }      
    ]
  });
  <% end %>
});
    
</script>
<% end %>

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
caboose-cms-0.9.229 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-1.0.2 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-1.0.1 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.228 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.227 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.226 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.225 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.224 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.223 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.222 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.221 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.220 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.219 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.218 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.217 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.216 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.215 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.214 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.213 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.212 app/views/caboose/products/admin_alternate_ids.html.erb