Sha256: 4c65ebcda2626335ec8bf4f97ad2a3d629993e124ab8d9a9b0d6a473cd5fb8fe

Contents?: true

Size: 1.18 KB

Versions: 35

Compression:

Stored size: 1.18 KB

Contents

<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: :adjustments} %>

<% content_for :page_title do %>
   / <%= plural_resource_name(Spree::Adjustment) %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to(Spree.t(:new_adjustment), new_admin_order_adjustment_url(@order), class: "btn-success", icon: 'add') if can? :create, Spree::Adjustment %>
<% end %>

<% if @adjustments.present? %>
  <div class="card mb-3">
    <%= render partial: 'adjustments_table' %>
  </div>
<% else %>
  <div class="alert alert-warning">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Adjustment)) %>
  </div>
<% end %>

<% if @order.can_add_coupon? %>
  <div class="card bg-light mb-3" data-hook="adjustments_new_coupon_code">
    <div class="card-body">
      <div class="form-group">
        <%= text_field_tag "coupon_code", "", placeholder: Spree.t(:coupon_code), class: "form-control" %>
      </div>
      <%= button Spree.t(:add_coupon_code), 'plus', 'submit', id: "add_coupon_code" %>
    </div>
  </div>
<% end %>

<%= javascript_tag do %>
  var order_number = '<%= @order.number %>';
<% end %>

<%= render partial: 'spree/admin/shared/order_summary' %>

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
spree_backend-4.0.9 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.15 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.14 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.0.8 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.13.1 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.0.7.1 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.0.7 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.13 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.0.6 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.0.5 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.12 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.0.4 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.11 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.10 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.9 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.8 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.7 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.6 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.5 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.1.4 app/views/spree/admin/adjustments/index.html.erb