<%= title.titleize %> Product Image
<%= simple_form_for product_image, url: url, html: {method: method.to_sym, multipart: true}, wrapper: :horizontal_form, wrapper_mappings: { file: :horizontal_file } do |f| %>
<%= image_tag product_image.image.url(:thumb), class: "img-fluid" unless product_image.new_record? %> <%= f.input :image, as: :file %> <%= hidden_field_tag :merchant_klass, "object.merchant_klass" %>
Please upload image with size 1400px x 500px (height x width)
<%= link_to "Close", "javascript:void(0)", class: "btn btn-secondary", data: {dismiss: "modal"} %> <%= f.button :submit, class: "btn-primary" %>
<% end %>