Sha256: 6a004a6c57f133a98d8dd5e3b97c664026719e8ba480e4a5ed48c94cb3d1d5d9

Contents?: true

Size: 1.04 KB

Versions: 31

Compression:

Stored size: 1.04 KB

Contents

<% @new_product = Auth.configuration.product_class.constantize.new(:create_from_product_id => @auth_shopping_product.id.to_s) %>
<%= form_for(@new_product, url: @new_product.new_record? ? products_path : product_path(@new_product), method: @new_product.new_record? ? :post : :put, as: :product) do |f| %>
  <% if @new_product.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@new_product.errors.count, "error") %> prohibited this new_product from being saved:</h2>

      <ul>
      <% @new_product.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  <div class="form_fields">
    <%= f.hidden_field :create_from_product_id, :value => @new_product.create_from_product_id %>
  </div>
  <div class="actions">
    <i class="material-icons" style="vertical-align: bottom;">people</i><span style="margin-left: 1rem;"><%= f.submit "Clone This Product", :style => "background-color: white; border:none; cursor: pointer;", :class => "teal-text" %></span>
  </div>
<% end %>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.5.9 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.5.8 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.5.7 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.5.6 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.5.5 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.5.4 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.5.3 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.5.2 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.5.1 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.5.0 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.4.9 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.4.8 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.4.7 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.4.6 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.4.5 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.4.4 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.4.3 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.4.2 app/views/auth/shopping/products/_create_from_product.html.erb
wordjelly-auth-1.4.0 app/views/auth/shopping/products/_create_from_product.html.erb