Sha256: f8b647df529171049e336103f958b550170495c088e08e77682a3a95cdb4f765

Contents?: true

Size: 1.23 KB

Versions: 2

Compression:

Stored size: 1.23 KB

Contents

<% number ||= 0 %>
<tr class="product_property">
  <td>
    <%= text_field_with_auto_complete :product_property, 
                                      :property_name,
                                      {:onkeypress => "return event.which == Event.KEY_RETURN ? false : true",
                                       :autocomplete => "off",
                                       :name => property_fu_name(product_property, number),
                                       :value => product_property.property ? product_property.property.name : ""
                                      },
                                      {:url => filtered_admin_properties_url,
                                       :method => :get,
                                       :with => "Object.toQueryString({q: element.value})" 
                                      } %>  
  </td>
  <td>
    <%= text_field :product_property, :property_value, {
                                       :name => property_fu_value(product_property, number),
                                       :value => product_property.value
                                      } %>
	</td>	
  <td>
  	<a href='#' onclick="$(this).up('.product_property').remove();"><%= t("Remove") %></a>
  </td>
</tr>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree-0.5.0 app/views/admin/product_properties/_product_property.html.erb
spree-0.5.1 app/views/admin/product_properties/_product_property.html.erb