Sha256: cc2f03b82facce9f1d886a5ab6947c6f4113d5ce2792de5d3962b99d7b879ce3

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 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) %>
      <%= button_link_to t('spree.download_promotion_code_list'), admin_promotion_promotion_codes_path(promotion_id: @promotion.id, format: :csv) %>
    <% end %>

    <% if can?(:display, Spree::PromotionCodeBatch) %>
      <%= button_link_to plural_resource_name(Spree::PromotionCodeBatch), admin_promotion_promotion_code_batches_path(promotion_id: @promotion.id) %>
    <% 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

6 entries across 6 versions & 1 rubygems

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