Sha256: 100bd5e079e639bc0a9f50babe0d9f5075d7beffd6fcc3a6d84cf7eb674a62d7

Contents?: true

Size: 1.29 KB

Versions: 88

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.filename) %>


<% 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.filename %></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.url(:small)), @image.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

88 entries across 88 versions & 2 rubygems

Version Path
solidus_backend-3.3.4 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.2.9 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.2.8 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.3.3 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.2.7 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.3.2 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.3.1 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.2.6 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.1.9 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.3.0 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.2.5 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.2.4 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.2.3 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.1.8 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.0.8 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.2.2 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.2.1 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.2.0 app/views/spree/admin/images/edit.html.erb
solidus_backend-3.2.0.alpha app/views/spree/admin/images/edit.html.erb
solidus_backend-3.0.7 app/views/spree/admin/images/edit.html.erb