Skip to content

Commit

Permalink
payemtn types
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Jan 13, 2025
1 parent e15bcef commit 05e429a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/trade/agent/orders/_base/_index_tr.html+pad.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
<% end %>
</div>
<div>
<%= link_to({ controller: 'trade/admin/refunds', order_id: model.id }, class: 'button is-small is-rounded is-link') do %>
<span><%= t('trade.admin.refunds.index.title') %></span>
<%= link_to({ controller: 'refunds', order_id: model.id }, class: 'button is-small is-rounded is-link') do %>
<span><%= t('.refunds.index.title') %></span>
<% end if ['refunding', 'refunded', 'denied'].include?(model.payment_status) %>
<% if ['unpaid', 'part_paid'].include?(model.payment_status) %>
<%= button_to({ controller: 'order_payments', action: 'new', order_id: model.id }, class: 'button is-small is-rounded is-danger') do %>
<%= button_to({ action: 'payment_types', id: model.id }, class: 'button is-small is-rounded is-danger') do %>
<i class="fa-solid fa-receipt"></i>
<span class="ml-1"><%= t('.order_payments.new.title') %></span>
<span class="ml-1"><%= t('.payment_types.title') %></span>
<% end %>
<%= button_to({ controller: 'order_payments', action: 'new_micro', order_id: model.id }, class: 'button is-small is-rounded is-danger') do %>
<i class="fa-solid fa-receipt"></i>
Expand Down

0 comments on commit 05e429a

Please sign in to comment.