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.9 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.1.8 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.0.8 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.0.7 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.17 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.1.7 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.16 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.0.6 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.1.6 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.15 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.14 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.0.5 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.1.5 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.13 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.0.4 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.1.4 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-2.11.12 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.0.3 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.1.3 app/views/spree/admin/adjustments/index.html.erb
solidus_backend-3.1.2 app/views/spree/admin/adjustments/index.html.erb