summaryrefslogtreecommitdiff
path: root/app/templates/modules/customers.html
blob: c693097af1999325c29257f0fe7b8c451f1118c0 (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
{# -*- mode: web; -*- #}

{% extends "base.html" %}
{% block title %}
Customers
{% endblock %}

{% block content %}
<div id="actions">
    <a href="{{ url_for('add_item', item='customer') }}" class="button">Add customer</a>
</div>

<table>
    <thead>
	<tr>
	    <th></th>
	    <th>Name</th>
	    <th>City</th>
	    <th>Phone</th>
	    <th>E-mail</th>
	</tr>
    </thead>
    <tbody>
	{% for customer in customers %}
	<tr>
	    <td><button>edit</button></td>
	    {% if customer.website %}
	    <td><a href="{{ customer.website }}">{{ customer.name }}</a></td>
	    {% else %}
	    <td>{{ customer.name }}</td>
	    {% endif %}
	    <td>{{ customer.city }}</td>
	    <td>{{ customer.phone }}</td>
	    {% if customer.email %}
	    <td><a href="mailto:{{ customer.email }}">{{ customer.email }}</a></td>
	    {% else %}
	    <td></td>
	    {% endif %}
	</tr>
	{% endfor %}
    </tbody>
</table>
{% endblock %}
Copyright 2019--2024 Marius PETER