Sha256: d00d8c972c6306896445b78c48b35961250a178343cf71756ba756bc6a03a9be

Contents?: true

Size: 1.11 KB

Versions: 5

Compression:

Stored size: 1.11 KB

Contents

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

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

<% if @adjustments.present? %>
  <div class="card mb-3">
    <%= render partial: 'adjustments_table' %>
  </div>
<% else %>
  <div class="text-center m-5">
    <%= 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), 'add.svg', 'submit', id: "add_coupon_code" %>
    </div>
  </div>
<% end %>

<script>
  var order_number = '<%= @order.number %>';
  var order_id = '<%= @order.id %>';
</script>

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_backend-4.6.2 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.6.1 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.6.0 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.5.1 app/views/spree/admin/adjustments/index.html.erb
spree_backend-4.5.0 app/views/spree/admin/adjustments/index.html.erb