Skip to content

Commit

Permalink
destroy logic
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Dec 4, 2024
1 parent 89b7a6e commit 144e220
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/trade/admin/payments/_base/_index_tr.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<%= button_to({ action: 'edit', id: model.id }, aria: { label: t('.edit.title') }, class: 'button is-small is-rounded is-light') do %>
<i class="fa-solid fa-pencil text-link"></i>
<% end %>
<%= button_to({ action: 'destroy', id: model.id }, method: :delete, aria: { label: t('.destroy.title') }, data: { turbo_confirm: t('.destroy.confirm') }, class: 'button is-small is-rounded is-light') do %>
<i class="fa-solid fa-trash text-danger"></i>
<% end %>
</div>
<div data-show-target="item" class="mt-2 visibility-hidden">
<%= button_to({ controller: 'refunds', action: 'new', payment_id: model.id }, class: 'button is-small is-rounded is-light') do %>
Expand Down

0 comments on commit 144e220

Please sign in to comment.