Sha256: 30b384a57dcca3c0e76a2503e992af40fcdddc4b663a48114f7ab2aaf1a36bd3

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

<tr>
  <td><%= payment_method.id %></td>
  <td><%= payment_method.type_i18n %></td>
  <td><%= payment_method.account_name %></td>
  <td><%= payment_method.account_num %></td>
  <td><%= payment_method.bank %></td>
  <td>
    <% payment_method.payment_references.each do |reference| %>
      <p id="reference_<%= reference.id %>">
        <%= reference.buyer.name %>
        <%= link_to t('.remove'), admin_payment_method_reference_path(payment_method, reference.id), method: :delete, remote: true %>
      </p>
    <% end %>
  </td>
  <td>
    <%= form_with model: payment_method, scope: 'payment_method', url: admin_payment_method_path(payment_method), method: :patch do |f| %>
      <%= f.check_box :verified, onChange: 'this.form.submit()', label: false, on: { wrapper_all: false, offset: false } %>
    <% end %>
  </td>
  <td>
    <%= link_to t('.relate'), new_admin_payment_method_reference_path(payment_method), class: 'ui mini green button', remote: true %>
    <%= link_to t('.destroy'), admin_payment_method_path(payment_method), remote: true, method: :delete, data: { confirm: 'Are you sure?' }, class: 'ui mini red button' %>
    <%= link_to t('.edit'), edit_admin_payment_method_path(payment_method), class: 'ui mini blue button' %>
  </td>
</tr>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_trade-0.0.1 app/views/rails_trade_admin/payment_methods/_payment_method.html.erb