d4ed44ac2a
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4YVo4UMopqT5DzicqpPjL
28 lines
1.5 KiB
HTML
28 lines
1.5 KiB
HTML
{{define "content"}}
|
|
<div class="card">
|
|
<h2>Журнал заявок ({{len .Items}})</h2>
|
|
{{if .Items}}
|
|
<table>
|
|
<thead><tr><th>Создана</th><th>ID</th><th>GUID M2M</th><th>Инвестор</th><th>ЦБ</th><th>Передающий</th><th>Принимающий</th><th>Статус</th><th></th></tr></thead>
|
|
<tbody>
|
|
{{range .Items}}
|
|
<tr>
|
|
<td>{{.CreatedAt.Format "02.01 15:04:05"}}</td>
|
|
<td><code>{{short 8 .ID}}</code></td>
|
|
<td><code>{{short 8 (printf "%s" .M2MGUID)}}</code></td>
|
|
<td>{{.Investor.LastName}} {{initial .Investor.FirstName}}</td>
|
|
<td>{{len .Securities}}</td>
|
|
<td>{{$f := m2mParty .TransferringDepositoryINN}}{{if $f}}<span style="font-size:11px">{{$f}}</span><br>{{end}}<code style="font-size:11px">{{.TransferringDepositoryINN}}</code></td>
|
|
<td>{{$t := m2mParty .ReceivingDepositoryINN}}{{if $t}}<span style="font-size:11px">{{$t}}</span><br>{{end}}<code style="font-size:11px">{{.ReceivingDepositoryINN}}</code></td>
|
|
<td>{{$l := liveOut .}}<span class="badge {{.Status}}">{{ruState .Status}}</span><div class="live live-{{$l.Kind}}" data-live="out:{{.ID}}"{{if $l.Active}} data-active="1"{{else}} title="Завершено: состояние больше не проверяется"{{end}}>{{$l.Text}}</div></td>
|
|
<td><a href="/admin/claims/{{.ID}}">детали →</a></td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
{{else}}
|
|
<p class="muted">Пусто.</p>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|