diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/Dawn/templates/blotter.html | 13 | ||||
| -rw-r--r-- | python/Dawn/templates/edit_cp.html | 4 | ||||
| -rw-r--r-- | python/Dawn/templates/trade_entry.html | 3 |
3 files changed, 12 insertions, 8 deletions
diff --git a/python/Dawn/templates/blotter.html b/python/Dawn/templates/blotter.html index d5542e3b..91b72121 100644 --- a/python/Dawn/templates/blotter.html +++ b/python/Dawn/templates/blotter.html @@ -4,7 +4,7 @@ <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:1100px; margin:0 auto"> + <body style="max-width:1300px; margin:0 auto"> <table class="table table-striped"> <thead> <tr> @@ -26,20 +26,21 @@ </thead> {% for trade in trades %} <tr> - <td><a href="{{url_for('trade_update', tradeid=trade.id)}}">{{trade.dealid}}</td> + <td><a href="{{url_for('trade_manage', tradeid=trade.id)}}">{{trade.dealid}}</a></td> <td>{{trade.trade_date}}</td> <td>{{trade.settle_date}}</td> <td>{% if trade.buysell %}Buy{% else %}Sell{% endif %}</td> - <td>{{trade.cusip}}</td> - <td>{{trade.isin}}</td> + <td>{{trade.cusip if trade.cusip}}</td> + <td>{{trade.isin if trade.isin}}</td> <td>{{trade.description}}</td> <td>{{trade.faceamount}}</td> <td>{{trade.price}}</td> - <td>{{trade.counterparty}}</td> + <td><a href="{{url_for('edit_counterparty', + cpcode=trade.counterparty.code)}}">{{trade.counterparty.name}}</a></td> <td>{{trade.folder}}</td> <td>{{trade.asset_class}}</td> <td>{{trade.accrued}}</td> - <td> + <td><a href="{{url_for('download_ticket', filename = trade.ticket)}}">download</a></td> </tr> {% endfor %} </table> diff --git a/python/Dawn/templates/edit_cp.html b/python/Dawn/templates/edit_cp.html index 49fc0f66..ff581c9f 100644 --- a/python/Dawn/templates/edit_cp.html +++ b/python/Dawn/templates/edit_cp.html @@ -5,7 +5,9 @@ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> </head> <body style="max-width:1024px; margin:0 auto"> - <form method="POST" class="form-horizontal" action="/" enctype="multipart/form-data"> + <form method="POST" class="form-horizontal" + action="{{url_for('edit_counterparty', cpcode=code)}}" + enctype="multipart/form-data"> {% for field in form %} <div class="form-group"> {% if field.type != 'CSRFTokenField' %} diff --git a/python/Dawn/templates/trade_entry.html b/python/Dawn/templates/trade_entry.html index 49fc0f66..89175442 100644 --- a/python/Dawn/templates/trade_entry.html +++ b/python/Dawn/templates/trade_entry.html @@ -5,7 +5,8 @@ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> </head> <body style="max-width:1024px; margin:0 auto"> - <form method="POST" class="form-horizontal" action="/" enctype="multipart/form-data"> + <form method="POST" class="form-horizontal" + action="{{url_for('trade_manage', tradeid=trade_id)}}" enctype="multipart/form-data"> {% for field in form %} <div class="form-group"> {% if field.type != 'CSRFTokenField' %} |
