Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Dec 23, 2024
1 parent 228f45c commit f1a302f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/views/trade/admin/orders/_actions.html+phone.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
<% end %>
<div
data-controller="scan"
data-scan-params-value="<%= { ids: @order.id }.to_json %>"
data-action="click->scan#report"
class="cell has-column-centered"
data-report-url="<%= url_for(action: 'micro', id: model.id) %>"
data-report-url="<%= url_for(controller: 'scan_payments', action: 'batch') %>"
>
<i class="fa-solid fa-credit-card"></i>
<span><%= t('.orders.micro.title') %></span>
<span><%= t('.scan_payments.batch.title') %></span>
</div>
<% if model.organ.device %>
<%= button_to({ action: 'print' }, class: 'cell has-column-centered') do %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
<% if @order.can_pay? %>
<div
data-controller="scan"
data-scan-params-value="<%= { ids: @order.id }.to_json %>"
data-action="click->scan#report"
class="button is-link"
data-report-url="<%= url_for(action: 'micro', id: @order.id) %>"
data-report-url="<%= url_for(controller: 'scan_payments', action: 'batch') %>"
>
<i class="fa-solid fa-credit-card"></i>
<span class="ml-1"><%= t('.micro.title') %></span>
<span class="ml-1"><%= t('.scan_payments.batch.title') %></span>
</div>
<% end %>
<%= link_to({ action: 'purchase', id: @order.id }, class: 'button is-link') do %>
Expand Down

0 comments on commit f1a302f

Please sign in to comment.