Sha256: 0583f94225524e203a5e2c44dc3eb0433bd1eee0fecb30b10e39bdb98041dc56

Contents?: true

Size: 1.29 KB

Versions: 6

Compression:

Stored size: 1.29 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 t('spree.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-2 align-center">
        <%= f.label t('spree.thumbnail') %><br>
        <%= link_to image_tag(@image.attachment.url(:small)), @image.attachment.url(:product) %>
      </div>
      <div class="col-10">
        <%= render partial: 'form', locals: { f: f } %>
      </div>
      <div class="clear"></div>
    </div>

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_backend-2.5.2 app/views/spree/admin/images/edit.html.erb
solidus_backend-2.5.1 app/views/spree/admin/images/edit.html.erb
solidus_backend-2.5.0 app/views/spree/admin/images/edit.html.erb
solidus_backend-2.5.0.rc1 app/views/spree/admin/images/edit.html.erb
solidus_backend-2.5.0.beta2 app/views/spree/admin/images/edit.html.erb
solidus_backend-2.5.0.beta1 app/views/spree/admin/images/edit.html.erb