Sha256: f4d694ae75902969df127fe7d435b3fa223a5d26401e9c5ea6836e9cf45f5eb8

Contents?: true

Size: 794 Bytes

Versions: 85

Compression:

Stored size: 794 Bytes

Contents

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

<% admin_breadcrumb(plural_resource_name(Spree::Adjustment)) %>

<% content_for :page_actions do %>
  <% if can? :create, Spree::Adjustment %>
    <li>
      <%= link_to t('spree.new_adjustment'), new_admin_order_adjustment_url(@order), class: 'btn btn-primary' %>
    </li>
  <% end %>
<% end %>

<%= render partial: 'adjustments_table' %>

<% if @order.can_add_coupon? %>
  <div data-hook="adjustments_new_coupon_code">
    <%= text_field_tag "coupon_code", "", placeholder: t('spree.coupon_code') %>
    <%= button_tag t('spree.add_coupon_code'), id: "add_coupon_code", class: 'btn btn-primary' %>
  </div>
<% end %>
<%= javascript_tag do -%>
  var order_number = '<%= @order.number %>';
<% end -%>

Version data entries

85 entries across 85 versions & 2 rubygems

Version Path
solidus_backend-3.1.1 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.1.0 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.11 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.0.2 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.10.5 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.10 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.0.1 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.0.0 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.9 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.8 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.7 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.6 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.0.0.rc2 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.5 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.4 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.3 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.2 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.1 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.10.3 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.0 app/views/spree/admin/adjustments/index.html.erb