Sha256: 3f5b103b0d23c432e7ecb8d1039f4263402913ca889aaf5b04a5f67a856747aa

Contents?: true

Size: 1.15 KB

Versions: 26

Compression:

Stored size: 1.15 KB

Contents

<% admin_layout "full-width" %>

<% admin_breadcrumb(link_to plural_resource_name(Spree::Promotion), spree.admin_promotions_path) %>
<% admin_breadcrumb(@promotion.name) %>

<% content_for :page_actions do %>
  <li>
    <% if can?(:display, Spree::PromotionCode) %>
      <%= link_to t('spree.download_promotion_code_list'), admin_promotion_promotion_codes_path(promotion_id: @promotion.id, format: :csv), class: 'btn btn-primary' %>
    <% end %>

    <% if can?(:display, Spree::PromotionCodeBatch) %>
      <%= link_to plural_resource_name(Spree::PromotionCodeBatch), admin_promotion_promotion_code_batches_path(promotion_id: @promotion.id), class: 'btn btn-primary' %>
    <% end %>
  </li>
<% end %>

<%= form_for @promotion, url: object_url, method: :put do |f| %>
  <%= render partial: 'form', locals: { f: f } %>
  <% if can?(:update, @promotion) %>
    <%= render partial: 'spree/admin/shared/edit_resource_links' %>
  <% end %>
<% end %>

<div id="promotion-filters" class="row">
  <div id="rules_container" class="col-6">
    <%= render partial: 'rules' %>
  </div>

  <div id="actions_container" class="col-6">
    <%= render partial: 'actions' %>
  </div>
</div>

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
solidus_backend-2.6.6 app/views/spree/admin/promotions/edit.html.erb
solidus_backend-2.7.4 app/views/spree/admin/promotions/edit.html.erb
solidus_backend-2.7.3 app/views/spree/admin/promotions/edit.html.erb
solidus_backend-2.6.5 app/views/spree/admin/promotions/edit.html.erb
solidus_backend-2.7.2 app/views/spree/admin/promotions/edit.html.erb
solidus_backend-2.6.4 app/views/spree/admin/promotions/edit.html.erb
solidus_backend-2.6.3 app/views/spree/admin/promotions/edit.html.erb
solidus_backend-2.7.1 app/views/spree/admin/promotions/edit.html.erb
solidus_backend-2.6.2 app/views/spree/admin/promotions/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/views/spree/admin/promotions/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/views/spree/admin/promotions/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.12 app/views/spree/admin/promotions/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.11 app/views/spree/admin/promotions/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.10 app/views/spree/admin/promotions/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.9 app/views/spree/admin/promotions/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.8 app/views/spree/admin/promotions/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.7 app/views/spree/admin/promotions/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.6 app/views/spree/admin/promotions/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.5 app/views/spree/admin/promotions/edit.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.4 app/views/spree/admin/promotions/edit.html.erb