Sha256: c87a821f5ac037fb7c2b79f96e1258792e1b2cb36210bf63f12d3b0b2795ce83

Contents?: true

Size: 1.27 KB

Versions: 9

Compression:

Stored size: 1.27 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 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 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 t(:update), 'icon-refresh' %>
      <span class="or"><%= t(:or) %></span>
      <%= link_to t(:cancel), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button icon-remove' %>
    </div>
  </fieldset>
<% end %>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/views/spree/admin/images/edit.html.erb
spree_core-1.3.4 app/views/spree/admin/images/edit.html.erb
spree_core-1.3.3 app/views/spree/admin/images/edit.html.erb
spree_core-1.3.2 app/views/spree/admin/images/edit.html.erb
spree_core-1.3.1 app/views/spree/admin/images/edit.html.erb
spree_core-1.3.0 app/views/spree/admin/images/edit.html.erb
spree_core-1.3.0.rc2 app/views/spree/admin/images/edit.html.erb
dup_spree_core-1.3.0.rc1 app/views/spree/admin/images/edit.html.erb
spree_core-1.3.0.rc1 app/views/spree/admin/images/edit.html.erb