Netdeploy2 Babyyyy

This commit is contained in:
Ben Mosley
2026-02-03 17:41:29 -06:00
commit c77674b86d
23 changed files with 659 additions and 0 deletions

View 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 %}

View 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 %}