You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.4 KiB
56 lines
1.4 KiB
<!doctype html> |
|
<html> |
|
<head> |
|
<title>Clients</title> |
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
</head> |
|
<body> |
|
|
|
<div class="otb-page"> |
|
<h1>Clients</h1> |
|
|
|
<p><a href="/">Home</a></p> |
|
<p><a href="/clients/new">Add Client</a></p> |
|
<p><a href="/clients/export.csv">Export CSV</a></p> |
|
|
|
<table class="otb-table"> |
|
<tr> |
|
<th>ID</th> |
|
<th>Code</th> |
|
<th>Company</th> |
|
<th>Contact</th> |
|
<th>Email</th> |
|
<th>Phone</th> |
|
<th>Status</th> |
|
<th>Balance</th> |
|
<th>Actions</th> |
|
</tr> |
|
|
|
{% for c in clients %} |
|
<tr> |
|
<td>{{ c.id }}</td> |
|
<td>{{ c.client_code }}</td> |
|
<td>{{ c.company_name }}</td> |
|
<td>{{ c.contact_name }}</td> |
|
<td>{{ c.email }}</td> |
|
<td>{{ c.phone }}</td> |
|
<td>{{ c.status }}</td> |
|
<td class="otb-money"> |
|
{% if c.outstanding_balance and c.outstanding_balance > 0 %} |
|
<strong>{{ c.outstanding_balance|money('CAD') }}</strong> |
|
{% else %} |
|
0.00 |
|
{% endif %} |
|
</td> |
|
<td> |
|
<a href="/clients/edit/{{ c.id }}">Edit</a> | |
|
<a href="/credits/{{ c.id }}">Ledger</a> |
|
</td> |
|
</tr> |
|
{% endfor %} |
|
</table> |
|
</div> |
|
|
|
{% include "footer.html" %} |
|
</body> |
|
</html>
|
|
|