Sha256: 34971b6caf6e97a8e9c75908aae2ba26f44131f5d156c66cec1e1ed3888760b1

Contents?: true

Size: 1.24 KB

Versions: 7

Compression:

Stored size: 1.24 KB

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_backend-1.2.3 app/views/spree/admin/images/edit.html.erb
solidus_backend-1.2.2 app/views/spree/admin/images/edit.html.erb
solidus_backend-1.2.1 app/views/spree/admin/images/edit.html.erb
solidus_backend-1.2.0 app/views/spree/admin/images/edit.html.erb
solidus_backend-1.2.0.rc2 app/views/spree/admin/images/edit.html.erb
solidus_backend-1.2.0.rc1 app/views/spree/admin/images/edit.html.erb
solidus_backend-1.2.0.beta1 app/views/spree/admin/images/edit.html.erb