aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/templates/cds_blotter.html
blob: c114db8dc8ec81bde6826f2f21d8e9b9ba6aa275 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends "base.html" %}
{% block content %}
<table class="table table-striped">
  <thead>
    <tr>
      <td>Deal ID</td>
      <td>Trade Date</td>
      <td>Protection</td>
      <td>Description</td>
      <td>Red Code</td>
      <td>Notional</td>
      <td style="text-align:center">Upfront</td>
      <td style="text-align:center">Ref</td>
      <td>Attach</td>
      <td>Detach</td>
      <td>Counterparty</td>
      <td>Strategy</td>
    </tr>
  </thead>
  {% for trade in trades %}
  <tr>
    <td><a href="{{url_for('trade_manage', tradeid=trade.id, kind='cds')}}">{{trade.dealid}}</a></td>
    <td>{{trade.trade_date}}</td>
    <td>{{trade.protection}}</td>
    <td>{{trade.security_desc}}</td>
    <td>{{trade.security_id}}</td>
    <td>{{"{0:,.2f}".format(trade.notional)}}</td>
    <td style="text-align:right">{{"{0:,.2f}".format(trade.upfront) if trade.upfront else "-"}}</td>
    <td style="text-align:right">{{"{0:,.4f}".format(trade.ref) if trade.ref else "-"}}</td>
    <td>{{trade.orig_attach if trade.attach is not none}}</td>
    <td>{{trade.orig_detach if trade.detach is not none}}</td>
    <td><a href="{{url_for('edit_counterparty',
                 cpcode=trade.counterparty.code)}}">{{trade.counterparty.name}}</a></td>
    <td>{{trade.folder}}</td>
  </tr>
  {% endfor %}
</table>
{% endblock %}