diff options
Diffstat (limited to 'app/templates/modules/customers.html')
-rw-r--r-- | app/templates/modules/customers.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app/templates/modules/customers.html b/app/templates/modules/customers.html new file mode 100644 index 0000000..c693097 --- /dev/null +++ b/app/templates/modules/customers.html @@ -0,0 +1,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 %} |