Sha256: c443e05eb193be9a95aa35768371dee9e91bfe52867cfb5b7056c8866aadeb87

Contents?: true

Size: 1.81 KB

Versions: 120

Compression:

Stored size: 1.81 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

120 entries across 120 versions & 1 rubygems

Version Path
caboose-cms-0.9.101 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.100 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.99 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.98 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.97 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.96 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.95 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.94 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.93 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.92 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.91 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.90 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.89 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.88 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.87 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.86 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.85 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.84 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.83 app/views/caboose/products/admin_alternate_ids.html.erb
caboose-cms-0.9.82 app/views/caboose/products/admin_alternate_ids.html.erb