06/16 Phase 6 (continue)
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
<th>{{ _('Amount') }}</th>
|
||||
<th>{{ _('Status') }}</th>
|
||||
<th>{{ _('Stripe ID') }}</th>
|
||||
<th></th>
|
||||
</tr></thead>
|
||||
{% for txn in pagination.items %}
|
||||
<tr>
|
||||
@@ -46,6 +47,16 @@
|
||||
<td>${{ '%.2f'|format(txn.amount_cents / 100) }}</td>
|
||||
<td><span class="badge {{ 'ok' if txn.status == 'succeeded' else 'warn' }}">{{ txn.status }}</span></td>
|
||||
<td class="muted small">{{ txn.stripe_object_id or '—' }}</td>
|
||||
<td>
|
||||
{% if txn.status == 'succeeded' and txn.type != 'refund' %}
|
||||
<form method="post"
|
||||
action="{{ url_for('admin.refund_transaction', txn_id=txn.id) }}"
|
||||
onsubmit="return confirm('{{ _('Issue refund for $%(a)s?', a='%.2f'|format(txn.amount_cents/100)) }}');">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<button class="btn ghost tiny" type="submit">{{ _('Refund') }}</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr><td colspan="6" class="muted">{{ _('No transactions.') }}</td></tr>
|
||||
|
||||
Reference in New Issue
Block a user