Sha256: d78ee1c48b2351eecff01e43872ea490462837e17ea727b532cddb428598d1ed

Contents?: true

Size: 1.75 KB

Versions: 12

Compression:

Stored size: 1.75 KB

Contents

<%= render :partial => 'admin/shared/product_sub_menu' %>

<%= render :partial => 'admin/shared/product_tabs', :locals => {:current => "Product Properties"} %>

<%= render "shared/error_messages", :target => @product %>

<%= form_for(@product, :url => admin_product_url(@product), :html => { :method => :put }) do |f| %>
  <table class="index">
    <thead>
      <tr>
        <th><%= t("property") %></th>
        <th><%= t("value") %></th>
        <th><%= t("action") %></th>
      </tr>
    </thead>
    <tbody id="product_properties">
      <%= f.fields_for :product_properties do |pp_form| %>
        <%= render 'product_property_fields', :f => pp_form %>
      <% end %>
    </tbody>
  </table>

  <input type="hidden" name="clear_product_properties" value="true">

  <p class='add_product_properties'>
    <%= link_to_add_fields  icon('add') + ' ' + t("add_product_properties"),
                            "tbody#product_properties",
                            f,
                            :product_properties %>

    &nbsp;&nbsp;

  	<span id="new_ptype_link">
  	  <%= link_to t("select_from_prototype"), available_admin_prototypes_url,
  	              :remote => true, 'data-update' => "prototypes" %>
  	</span>
	</p>
	<div id="prototypes"></div>
	<%= image_tag "spinner.gif", :plugin=>"spree", :style => "display:none", :id => 'busy_indicator' %>
	<br/>
  <%= render :partial => 'admin/shared/edit_resource_links' %>
<% end %>

<%= javascript_tag do %>
  var properties = [<%= @properties.map{|id| "'#{id}'"}.join(', ') %>];

  $("#product_properties input.autocomplete").live("keydown", function(){
    already_auto_completed = $(this).is('ac_input');
    if (!already_auto_completed) {
      $(this).autocomplete(properties);
      $(this).focus();
    }
  });
<% end %>

Version data entries

12 entries across 12 versions & 6 rubygems

Version Path
apispree_core-0.0.0 app/views/admin/product_properties/index.html.erb
My-Commerce_core-1.1.0 app/views/admin/product_properties/index.html.erb
My-Commerce_core-1.0.0 app/views/admin/product_properties/index.html.erb
MyCommerceapi-1.0.0 core/app/views/admin/product_properties/index.html.erb
MyCommerce-0.0.3 core/app/views/admin/product_properties/index.html.erb
rfcommerce_core-0.0.3 app/views/admin/product_properties/index.html.erb
spree_core-0.60.6 app/views/admin/product_properties/index.html.erb
spree_core-0.60.5 app/views/admin/product_properties/index.html.erb
spree_core-0.60.4 app/views/admin/product_properties/index.html.erb
spree_core-0.60.3 app/views/admin/product_properties/index.html.erb
spree_core-0.60.2 app/views/admin/product_properties/index.html.erb
spree_core-0.60.1 app/views/admin/product_properties/index.html.erb