aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/templates/cds_blotter.html
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn/templates/cds_blotter.html')
-rw-r--r--python/Dawn/templates/cds_blotter.html74
1 files changed, 34 insertions, 40 deletions
diff --git a/python/Dawn/templates/cds_blotter.html b/python/Dawn/templates/cds_blotter.html
index 704475aa..f0ce8d44 100644
--- a/python/Dawn/templates/cds_blotter.html
+++ b/python/Dawn/templates/cds_blotter.html
@@ -1,40 +1,34 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
- </head>
- <body style="max-width:1500px; margin:0 auto">
- <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>Attach</td>
- <td>Detach</td>
- <td>Counterparty</td>
- <td>Strategy</td>
- </tr>
- </thead>
- {% for trade in trades %}
- <tr>
- <td><a href="{{url_for('cds_trade_manage', tradeid=trade.id)}}">{{trade.dealid}}</a></td>
- <td>{{trade.trade_date}}</td>
- <td>{{trade.protection}}</td>
- <td>{{trade.security_desc}}</td>
- <td>{{trade.security_id}}</td>
- <td>{{trade.notional}}</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>
- </body>
-</html>
+{% 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>Attach</td>
+ <td>Detach</td>
+ <td>Counterparty</td>
+ <td>Strategy</td>
+ </tr>
+ </thead>
+ {% for trade in trades %}
+ <tr>
+ <td><a href="{{url_for('cds_trade_manage', tradeid=trade.id)}}">{{trade.dealid}}</a></td>
+ <td>{{trade.trade_date}}</td>
+ <td>{{trade.protection}}</td>
+ <td>{{trade.security_desc}}</td>
+ <td>{{trade.security_id}}</td>
+ <td>{{trade.notional}}</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 %}