<% number ||= 0 %> <%= 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})" } %> <%= text_field :product_property, :property_value, { :name => property_fu_value(product_property, number), :value => product_property.value } %> <%= t("Remove") %>