Line # Revision Author
1 563 ahitrov <div style="border:1px solid gray; margin:10px 0; padding:5px; background:<% $bg_color %>;">
2 579 ahitrov <div style="width:200px; float:right;"><% $transaction->status ? '<span class="red">Тестовая оплата</span>' : 'Реальная оплата' %> (PayTure)</div>
3 563 ahitrov <% $dt->dmy('.').' '.$dt->hms %><br>
4 % if ( exists $TYPE{$transaction->name} ) {
5 <h4><% $TYPE{$transaction->name} %></h4>
6 % } else {
7 <h4><% $transaction->name %></h4>
8 % }
9 <p>
10 Статус операции: <% $transaction->success ? '<b style="color:green;">Успех</b>' : '<b style="color:red;">Неудача</b>' %><br>
11 Сумма в валюте транзакции: <b><% sprintf("%.2f", $transaction->sum / 100) %> <% $transaction->currency_code %></b><br>
12 </p>
13 </div>
14 <%once>
15
16 my %TYPE = (
17 'Init' => 'Инициализация',
18 'Charged' => 'Списание денежных средств',
19 # '' => '',
20 );
21
22 </%once>
23 <%args>
24
25 $transaction => undef
26
27 </%args>
28 <%init>
29
30 my $bg_color = $transaction->status ? $transaction->success ? '#e8ffe8' : '#ffe8e8' : '#e8e8e8';
31 my $dt = Contenido::DateTime->new( postgres => $transaction->mtime );
32
33 </%init>