Netdeploy2 Babyyyy
This commit is contained in:
32
templates/clients/list.html
Normal file
32
templates/clients/list.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
<h2>Clients</h2>
|
||||
|
||||
<p>
|
||||
<a href="{{ url_for('clients.new_client') }}">+ New Client</a>
|
||||
</p>
|
||||
|
||||
<table border="1" cellpadding="6">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Email</th>
|
||||
<th>Kind</th>
|
||||
</tr>
|
||||
|
||||
{% for c in clients %}
|
||||
<tr>
|
||||
<td>{{ c.id }}</td>
|
||||
<td>{{ c.name }}</td>
|
||||
<td>{{ c.email or "" }}</td>
|
||||
<td>{{ c.kind }}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="4">No clients yet.</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
23
templates/clients/new.html
Normal file
23
templates/clients/new.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
<h2>New Client</h2>
|
||||
|
||||
<form method="POST">
|
||||
<p>
|
||||
<label>Name<br>
|
||||
<input name="name" required style="width: 360px;">
|
||||
</label>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label>Email<br>
|
||||
<input name="email" style="width: 360px;">
|
||||
</label>
|
||||
</p>
|
||||
|
||||
<button type="submit">Create Client</button>
|
||||
<a href="{{ url_for('clients.list_clients') }}" style="margin-left: 10px;">Cancel</a>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user