aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/templates/cds_blotter.html
blob: e4cdf5ce7f0f78e2d8bd31febb8cc86f383bc861 (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
{% 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>Upfront</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>{{"{0:,.2f}".format(trade.upfront)}}</td>
    <td>{{trade.attach if trade.attach is not none}}</td>
    <td>{{trade.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 %}