<%= form_tag({:action=>'create'} ,:multipart=>true,:id=>'myForms' ) do %>
<%
ischeckFlgs = true
image_url = "#{root_url}images/no-image.jpg"
if @AddProduct
if @AddProduct.pd_img.to_s.present?
chekpath = "#{Rails.root}/public/images/product/multi_image/#{@AddProduct.pd_file_path}/#{@AddProduct.pd_img}"
if File.file?(chekpath)
ischeckFlgs = false
image_url = "#{root_url}images/product/multi_image/#{@AddProduct.pd_file_path}/#{@AddProduct.pd_img}"
end
end
end
if ischeckFlgs
if @AddProduct
image_url = "#{root_url}images/product/#{@AddProduct.pd_img}"
end
end
%>
<%if @AddProduct && @AddProduct.pd_subcategory%>
<%else%>
<%end%>
<%
if @DelProducImage && @DelProducImage.length >0
@DelProducImage.each do |newimg|
myimages = "../assets/img/course/course1.jpg"
if newimg.pmi_image.to_s.present?
chekpath = "#{Rails.root}/public/images/product/multi_image/#{newimg.pmi_filepath}/#{newimg.pmi_image}"
if File.file?(chekpath)
myimages = "#{root_url}images/product/multi_image/#{newimg.pmi_filepath}/#{newimg.pmi_image}"
end
end
%>
<%
end
end
%>
<%= render 'add_product/basic_information' %>
<%end%>