Sha256: b750c45ad0aa69f6480b50fa93f0bf9c6cd2957bf21f6c96d0eebde9691e45fd
Contents?: true
Size: 1.67 KB
Versions: 1
Compression:
Stored size: 1.67 KB
Contents
<div class="ui borderless menu"> <div class="item">Refund</div> </div> <div class="ui top attached segment"> <%= render 'search_form' %> </div> <table class="ui bottom attached table"> <thead> <tr> <th>UUID</th> <th>Order</th> <th>Total Amount</th> <th>Type</th> <th>Created At</th> <th>State</th> <th>Comment</th> <th>Refunded At</th> <th>Operator</th> </tr> </thead> <tbody> <% @refunds.each do |refund| %> <tr> <td><%= refund.refund_uuid %></td> <td> <p><%= link_to refund.order.uuid, admin_order_path(refund.order_id) %></p> <p><%= link_to refund.payment.payment_uuid, admin_payments_path(id: refund.payment_id) %></p> </td> <td><%= refund.total_amount.to_money(refund.currency).format %></td> <td><%= refund.type %></td> <td><time><%= refund.created_at.to_s(:rfc822) %></time></td> <td><%= refund.state %></td> <td><%= refund.comment %></td> <td> <% if refund.refunded_at %> <time><%= refund.refunded_at.to_s(:rfc822) %></time> <% else %> <div class="ui buttons"> <%= link_to 'Approve', confirm_admin_refund_path(refund), method: :patch, data: { confirm: 'Confirm Do Refund!' }, class: 'ui positive button' %> <div class="or"></div> <%= link_to 'Deny', deny_admin_refund_path(refund), method: :patch, data: { confirm: 'Deny Refund!' }, class: 'ui negative button' %> </div> <% end %> <% if refund.reason %> <p><%= refund.reason.truncate(27) %></p> <% end %> </td> <td><%= refund.operator&.name %></td> </tr> <% end %> </tbody> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_trade-0.0.1 | app/views/rails_trade_admin/refunds/index.html.erb |