Skip to content

Commit

Permalink
Add IP and user-agent into payment's detail page
Browse files Browse the repository at this point in the history
remp/crm#2487
  • Loading branch information
markoph committed Oct 2, 2023
1 parent 8eccdb0 commit bc9d08d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lang/payments.cs_CZ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ admin:
recurrent_next: Následující rekurentní platba
payment_meta:
header: Meta
ip: IP adresa
user_agent: User-Agent

report:
no_recurrent_charge:
Expand Down
2 changes: 2 additions & 0 deletions src/lang/payments.en_US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@ admin:
recurrent_next: Created payment
payment_meta:
header: Meta
ip: IP address
user_agent: User-Agent

report:
no_recurrent_charge:
Expand Down
2 changes: 2 additions & 0 deletions src/lang/payments.sk_SK.yml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@ admin:
recurrent_next: Nasledujúca rekurentná platba
payment_meta:
header: Meta
ip: IP adresa
user_agent: User-Agent

report:
no_recurrent_charge:
Expand Down
10 changes: 10 additions & 0 deletions src/templates/PaymentsAdmin/show.latte
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@
<a n:if="$payment->referer" href="{$payment->referer|checkUrl}">{$payment->referer}</a>
</li>

<li class="list-group-item">
<b>{_payments.admin.payments.show.ip}:</b>&nbsp;
<span>{$payment->ip}</span>
</li>

<li class="list-group-item">
<b>{_payments.admin.payments.show.user_agent}:</b>&nbsp;
<span>{$payment->user_agent}</span>
</li>

{* this widgets add own LI items *}
{control simpleWidget 'payments.admin.payment_source_listing', $payment}
</ul>
Expand Down

0 comments on commit bc9d08d

Please sign in to comment.