aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/templates/counterparties.html
blob: 16f3680f85e4d52ea2e04d6631404c411c7d32ae (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
37
38
39
40
41
42
43
{% 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>
{% endblock %}