Sha256: fce85e3be015e03f990e9ceba9b986e100e5e8fde66621b3a0e7855552bc0178

Contents?: true

Size: 1.32 KB

Versions: 30

Compression:

Stored size: 1.32 KB

Contents

<%= render :partial => 'spree/admin/shared/product_sub_menu' %>

<%= render :partial => 'spree/admin/shared/product_tabs', :locals => { :current => 'Images' } %>

<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @image } %>

<% content_for :page_actions do %>
  <li><%= button_link_to Spree.t(:back_to_images_list), admin_product_images_url(@product), :icon => 'icon-arrow-left' %></li>
<% end %>

<%= form_for [:admin, @product, @image], :html => { :multipart => true } do |f| %>
  <fieldset data-hook="edit_image">
    <legend align="center"><%= @image.attachment_file_name%></legend>
    <div data-hook="thumbnail" class="field alpha three columns align-center">
      <%= f.label Spree.t(:thumbnail) %><br>
      <%= link_to image_tag(@image.attachment.url(:small)), @image.attachment.url(:product) %>
    </div>
    <div class="nine columns omega">
      <%= render :partial => 'form', :locals => { :f => f } %>  
    </div>
    <div class="clear"></div>
    <div class="form-buttons filter-actions actions" data-hook="buttons">
      <%= button Spree.t('actions.update'), 'icon-refresh' %>
      <span class="or"><%= Spree.t(:or) %></span>
      <%= link_to Spree.t('actions.cancel'), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button icon-remove' %>
    </div>
  </fieldset>
<% end %>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
spree_backend-2.1.12 app/views/spree/admin/images/edit.html.erb
spree_backend-2.1.11 app/views/spree/admin/images/edit.html.erb
spree_backend-2.1.10 app/views/spree/admin/images/edit.html.erb
spree_backend-2.0.13 app/views/spree/admin/images/edit.html.erb
spree_backend-2.1.9 app/views/spree/admin/images/edit.html.erb
spree_backend-2.1.8 app/views/spree/admin/images/edit.html.erb
spree_backend-2.0.12 app/views/spree/admin/images/edit.html.erb
spree_backend-2.1.7 app/views/spree/admin/images/edit.html.erb
spree_backend-2.0.11 app/views/spree/admin/images/edit.html.erb
spree_backend-2.0.10 app/views/spree/admin/images/edit.html.erb
spree_backend-2.2.1 app/views/spree/admin/images/edit.html.erb
spree_backend-2.1.6 app/views/spree/admin/images/edit.html.erb
spree_backend-2.2.0 app/views/spree/admin/images/edit.html.erb
spree_backend-2.1.5 app/views/spree/admin/images/edit.html.erb
spree_backend-2.0.9 app/views/spree/admin/images/edit.html.erb
spree_backend-2.1.4 app/views/spree/admin/images/edit.html.erb
spree_backend-2.0.8 app/views/spree/admin/images/edit.html.erb
spree_backend-2.1.3 app/views/spree/admin/images/edit.html.erb
spree_backend-2.0.7 app/views/spree/admin/images/edit.html.erb
spree_backend-2.1.2 app/views/spree/admin/images/edit.html.erb