Sha256: b2ee7c39c7b6c53c84d0128546d0d22748ddf70c5768b461fe19086b83d2f4e3
Contents?: true
Size: 1.34 KB
Versions: 13
Compression:
Stored size: 1.34 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><%= link_to t('spree.back_to_images_list'), admin_product_images_url(@product), class: 'btn btn-primary' %></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_tag t('spree.actions.update'), class: 'btn btn-primary' %> <%= link_to t('spree.actions.cancel'), admin_product_images_url(@product), id: 'cancel_link', class: 'button' %> </div> </fieldset> <% end %>
Version data entries
13 entries across 13 versions & 1 rubygems