4 changed files with 137 additions and 13 deletions
@ -0,0 +1,40 @@ |
|||||||
|
<!doctype html> |
||||||
|
<html> |
||||||
|
<head> |
||||||
|
<title>Clients</title> |
||||||
|
</head> |
||||||
|
|
||||||
|
<body> |
||||||
|
|
||||||
|
<h1>Clients</h1> |
||||||
|
|
||||||
|
<p><a href="/clients/new">Add Client</a></p> |
||||||
|
|
||||||
|
<table border="1" cellpadding="6"> |
||||||
|
|
||||||
|
<tr> |
||||||
|
<th>ID</th> |
||||||
|
<th>Code</th> |
||||||
|
<th>Company</th> |
||||||
|
<th>Contact</th> |
||||||
|
<th>Email</th> |
||||||
|
<th>Phone</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> |
||||||
|
</tr> |
||||||
|
|
||||||
|
{% endfor %} |
||||||
|
|
||||||
|
</table> |
||||||
|
|
||||||
|
</body> |
||||||
|
</html> |
||||||
@ -0,0 +1,45 @@ |
|||||||
|
<!doctype html> |
||||||
|
<html> |
||||||
|
<head> |
||||||
|
<title>New Client</title> |
||||||
|
</head> |
||||||
|
|
||||||
|
<body> |
||||||
|
|
||||||
|
<h1>Add Client</h1> |
||||||
|
|
||||||
|
<form method="post"> |
||||||
|
|
||||||
|
<p> |
||||||
|
Client Code<br> |
||||||
|
<input name="client_code"> |
||||||
|
</p> |
||||||
|
|
||||||
|
<p> |
||||||
|
Company Name<br> |
||||||
|
<input name="company_name"> |
||||||
|
</p> |
||||||
|
|
||||||
|
<p> |
||||||
|
Contact Name<br> |
||||||
|
<input name="contact_name"> |
||||||
|
</p> |
||||||
|
|
||||||
|
<p> |
||||||
|
Email<br> |
||||||
|
<input name="email"> |
||||||
|
</p> |
||||||
|
|
||||||
|
<p> |
||||||
|
Phone<br> |
||||||
|
<input name="phone"> |
||||||
|
</p> |
||||||
|
|
||||||
|
<p> |
||||||
|
<button type="submit">Create Client</button> |
||||||
|
</p> |
||||||
|
|
||||||
|
</form> |
||||||
|
|
||||||
|
</body> |
||||||
|
</html> |
||||||
Loading…
Reference in new issue