Sha256: c5fce2fe1e9e72e9b4fd93df2696a3cf2c5af7e9895afa2969f2937e1f086b8d

Contents?: true

Size: 1.19 KB

Versions: 27

Compression:

Stored size: 1.19 KB

Contents

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

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

<%= form_for [:admin, @product, @image], html: { multipart: true } do |f| %>
  <div data-hook="edit_image" class="panel panel-default">
    <div class="panel-heading">
      <h1 class="panel-title">
        <%= @image.attachment_file_name%>
      </h1>
    </div>
    <div class="panel-body">
      <div class="form-group">
        <div data-hook="thumbnail" class="col-xs-12 col-md-3 text-center">
          <%= f.label Spree.t(:thumbnail) %>
          <%= link_to image_tag(main_app.url_for(@image.url(:small))), main_app.url_for(@image.url(:product)) %>
        </div>
        <div class="col-xs-12 col-md-9">
          <%= render partial: 'form', locals: { f: f } %>
        </div>

        <div class="form-actions" data-hook="buttons">
          <%= button Spree.t('actions.update'), 'save' %>
          <span class="or"><%= Spree.t(:or) %></span>
          <%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), id: 'cancel_link', icon: 'delete' %>
        </div>
      </div>
    </div>
  </div>
<% end %>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
spree_backend-3.7.14.1 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.14 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.13 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.12 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.11 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.10 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.9 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.8 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.7 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.6 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.5 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.4 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.3 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.2 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.1 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.0 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.0.rc3 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.0.rc2 app/views/spree/admin/images/edit.html.erb
spree_backend-3.7.0.rc1 app/views/spree/admin/images/edit.html.erb
spree_backend-3.6.6 app/views/spree/admin/images/edit.html.erb