Sha256: fa29d7dac6a1cf213da542e6c9601f0ad8ef563149447d1765ba5283e919c604

Contents?: true

Size: 981 Bytes

Versions: 6

Compression:

Stored size: 981 Bytes

Contents

<%= form_for(@product) do |f| %>
  <% if @product.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@product.errors.count, "error") %> prohibited this product from being saved:</h2>

      <ul>
      <% @product.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :description %><br />
    <%= f.text_field :description %>
  </div>
  <!--StartCropperImagesSection-->
  <%= images_id(@product) %>
  <%= image_cropper(@product, { image_name: "imgA", ratio: :user }) %><br/>
  <%= image_cropper(@product, { image_name: "imgB", ratio: :big }) %><br/>
  <%#= image_cropper(@product, { image_name: "imgC", ratio: :gigant }) %><br/>
  <%#= image_tag @product.imgA.user %>
  <!--StartCropperImagesSection-->
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
crimagify-0.0.3.6 test/dummy/app/views/products/_form.html.erb
crimagify-0.0.3.5 test/dummy/app/views/products/_form.html.erb
crimagify-0.0.3.4 test/dummy/app/views/products/_form.html.erb
crimagify-0.0.3.3 test/dummy/app/views/products/_form.html.erb
crimagify-0.0.3.2 test/dummy/app/views/products/_form.html.erb
crimagify-0.0.3.1 test/dummy/app/views/products/_form.html.erb