diff options
Diffstat (limited to 'python/Dawn/templates/counterparties.html')
| -rw-r--r-- | python/Dawn/templates/counterparties.html | 90 |
1 files changed, 42 insertions, 48 deletions
diff --git a/python/Dawn/templates/counterparties.html b/python/Dawn/templates/counterparties.html index 39883e02..16f3680f 100644 --- a/python/Dawn/templates/counterparties.html +++ b/python/Dawn/templates/counterparties.html @@ -1,49 +1,43 @@ -<!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:1800px; margin:0 auto"> - <table class="table table-striped"> - <thead> - <tr> - <td>CODE</td> - <td>Firm</td> - <td>Location</td> - <td>DTC Number</td> - <td>Sales Contact</td> - <td>Sales Phone</td> - <td>Valuation Contact1</td> - <td>Valuation Contact2</td> - <td>Valuation Contact3</td> - <td>Valuation Contact4</td> +{% extends "base.html" %} +{% block content %} +<table class="table table-striped"> + <thead> + <tr> + <td>CODE</td> + <td>Firm</td> + <td>Location</td> + <td>DTC Number</td> + <td>Sales Contact</td> + <td>Sales Phone</td> + <td>Valuation Contact1</td> + <td>Valuation Contact2</td> + <td>Valuation Contact3</td> + <td>Valuation Contact4</td> <td>Valuation Note</td> - <td>Instructions</td> - </tr> - </thead> - {% for cp in counterparties %} - <tr> - <td><a href="{{url_for('edit_counterparty',cpcode=cp.code)}}">{{cp.code}}</td> - <td>{{cp.name}}</td> - <td>{{cp.city}}, {{cp.state}}</td> - <td>{{cp.dtc_number if cp.dtc_number}}</td> - <td><a href="mailto:{{cp.sales_email}}">{{cp.sales_contact if cp.sales_contact}}</a></td> - <td>{{cp.sales_phone if cp.sales_phone}}</td> - <td>{% if cp.valuation_contact1 %} - <a href="mailto:{{cp.valuation_email1}}"> - {{cp.valuation_contact1}}</a>{% endif %}</td> - <td>{% if cp.valuation_contact2 %} - <a href="mailto:{{cp.valuation_email2}}">{{cp.valuation_contact2}}</a>{% endif %}</td> - <td>{% if cp.valuation_contact3 %} - <a href="mailto:{{cp.valuation_email3}}">{{cp.valuation_contact3}}</a>{% endif %}</td> - <td>{% if cp.valuation_contact4 %} - <a href="mailto:{{cp.valuation_email4}}">{{cp.valuation_contact4}}</a>{% endif %}</td> - <td style="width:50px">{{cp.notes if cp.notes}}</td> - <td>{%if cp.instructions %}<a href="{{url_for('list_counterparties', instr = cp.instructions)}}"> - <span class="glyphicon glyphicon-file"></span></a>{% endif %}</td> - </tr> - {% endfor %} - </table> - </body> -</html> + <td>Instructions</td> + </tr> + </thead> + {% for cp in counterparties %} + <tr> + <td><a href="{{url_for('edit_counterparty',cpcode=cp.code)}}">{{cp.code}}</td> + <td>{{cp.name}}</td> + <td>{{cp.city}}, {{cp.state}}</td> + <td>{{cp.dtc_number if cp.dtc_number}}</td> + <td><a href="mailto:{{cp.sales_email}}">{{cp.sales_contact if cp.sales_contact}}</a></td> + <td>{{cp.sales_phone if cp.sales_phone}}</td> + <td>{% if cp.valuation_contact1 %} + <a href="mailto:{{cp.valuation_email1}}"> + {{cp.valuation_contact1}}</a>{% endif %}</td> + <td>{% if cp.valuation_contact2 %} + <a href="mailto:{{cp.valuation_email2}}">{{cp.valuation_contact2}}</a>{% endif %}</td> + <td>{% if cp.valuation_contact3 %} + <a href="mailto:{{cp.valuation_email3}}">{{cp.valuation_contact3}}</a>{% endif %}</td> + <td>{% if cp.valuation_contact4 %} + <a href="mailto:{{cp.valuation_email4}}">{{cp.valuation_contact4}}</a>{% endif %}</td> + <td style="width:50px">{{cp.notes if cp.notes}}</td> + <td>{%if cp.instructions %}<a href="{{url_for('list_counterparties', instr = cp.instructions)}}"> + <span class="glyphicon glyphicon-file"></span></a>{% endif %}</td> + </tr> + {% endfor %} +</table> +{% endblock %} |
