Implement more tables, add more page templates, initial working db example
This commit is contained in:
7
templates/clients/client.html
Normal file
7
templates/clients/client.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
{% block headers %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
Hewwo wowld!!!!
|
||||
{% endblock %}
|
||||
31
templates/clients/index.html
Normal file
31
templates/clients/index.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% extends "base.html" %}
|
||||
{% block headers %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<table>
|
||||
<tr>
|
||||
<td>First Name</td>
|
||||
<td>Last Name</td>
|
||||
<td>Address</td>
|
||||
<td>Number</td>
|
||||
<td>Email</td>
|
||||
</tr>
|
||||
{% for client in clients %}
|
||||
<tr>
|
||||
<td>{{ client.first_name }}</td>
|
||||
<td>{{ client.last_name }}</td>
|
||||
<td>
|
||||
{{ client.country}}
|
||||
{{ client.city}}
|
||||
{{ client.state}}
|
||||
{{ client.address_line}}
|
||||
{{ client.house_number}}
|
||||
{{ client.postal_code}}
|
||||
</td>
|
||||
<td>{{ client.phone_number }}</td>
|
||||
<td>{{ client.email }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user