Sha256: 8fb14cd33797d63907e902936ff8398cbf594b58e9cd173bba993d80c2d53eb6

Contents?: true

Size: 1.33 KB

Versions: 4

Compression:

Stored size: 1.33 KB

Contents

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

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

<% admin_breadcrumb(link_to plural_resource_name(Spree::Image), admin_product_images_path(@product)) %>
<% admin_breadcrumb(@image.attachment_file_name) %>


<% content_for :page_actions do %>
  <li><%= button_link_to Spree.t(:back_to_images_list), admin_product_images_url(@product) %></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 class="row">
      <div data-hook="thumbnail" class="field col-xs-2 align-center">
        <%= f.label Spree.t(:thumbnail) %><br>
        <%= link_to image_tag(@image.attachment.url(:small)), @image.attachment.url(:product) %>
      </div>
      <div class="col-xs-10">
        <%= render :partial => 'form', :locals => { :f => f } %>
      </div>
      <div class="clear"></div>
    </div>

    <div class="form-buttons filter-actions actions" data-hook="buttons">
      <%= button Spree.t('actions.update') %>
      <%= link_to Spree.t('actions.cancel'), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button' %>
    </div>
  </fieldset>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_backend-2.1.1 app/views/spree/admin/images/edit.html.erb
solidus_backend-2.1.0 app/views/spree/admin/images/edit.html.erb
solidus_backend-2.1.0.rc1 app/views/spree/admin/images/edit.html.erb
solidus_backend-2.1.0.beta1 app/views/spree/admin/images/edit.html.erb