diff options
Diffstat (limited to 'python/Dawn/templates')
| -rw-r--r-- | python/Dawn/templates/counterparties.html | 47 | ||||
| -rw-r--r-- | python/Dawn/templates/edit_cp.html | 28 |
2 files changed, 75 insertions, 0 deletions
diff --git a/python/Dawn/templates/counterparties.html b/python/Dawn/templates/counterparties.html new file mode 100644 index 00000000..f0b0f60a --- /dev/null +++ b/python/Dawn/templates/counterparties.html @@ -0,0 +1,47 @@ +<!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> + <td>Valuation Note</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>{{cp.notes if cp.notes}}</td> + <td> + </tr> + {% endfor %} + </table> + </body> +</html> diff --git a/python/Dawn/templates/edit_cp.html b/python/Dawn/templates/edit_cp.html new file mode 100644 index 00000000..49fc0f66 --- /dev/null +++ b/python/Dawn/templates/edit_cp.html @@ -0,0 +1,28 @@ +<!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:1024px; margin:0 auto"> + <form method="POST" class="form-horizontal" action="/" enctype="multipart/form-data"> + {% for field in form %} + <div class="form-group"> + {% if field.type != 'CSRFTokenField' %} + <label class="control-label col-md-2" for="{{ field.id }}"> + {{ field.label.text }} + </label> + {% endif %} + <div class="col-md-3"> + {{ field(class_="form-control") }} + </div> + </div> + {% endfor %} + <div class="form-group"> + <div class="col-md-offset-2 col-md-3"> + <button type="submit" class="btn btn-default">Submit</button> + </div> + </div> + </form> + </body> +</html> |
