billing frontend for mariadb. setup as otb_billing for outsidethebox.top accounting. also involved with outsidethedb
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

75 lines
1.5 KiB

<!doctype html>
<html>
<head>
<title>Edit Client</title>
</head>
<body>
<h1>Edit Client</h1>
<p><a href="/">Home</a></p>
<p><a href="/clients">Back to Clients</a></p>
{% if errors %}
<div style="border:1px solid red; padding:10px; margin-bottom:15px;">
<strong>Please fix the following:</strong>
<ul>
{% for error in errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
<form method="post">
<p>
Client Code<br>
<input value="{{ client.client_code }}" readonly>
</p>
<p>
Company Name *<br>
<input name="company_name" value="{{ client.company_name }}" required>
</p>
<p>
Contact Name<br>
<input name="contact_name" value="{{ client.contact_name or '' }}">
</p>
<p>
Email<br>
<input name="email" value="{{ client.email or '' }}">
</p>
<p>
Phone<br>
<input name="phone" value="{{ client.phone or '' }}">
</p>
<p>
Status *<br>
<select name="status" required>
<option value="lead" {% if client.status == 'lead' %}selected{% endif %}>lead</option>
<option value="active" {% if client.status == 'active' %}selected{% endif %}>active</option>
<option value="inactive" {% if client.status == 'inactive' %}selected{% endif %}>inactive</option>
<option value="suspended" {% if client.status == 'suspended' %}selected{% endif %}>suspended</option>
</select>
</p>
<p>
Notes<br>
<textarea name="notes" rows="5" cols="60">{{ client.notes or '' }}</textarea>
</p>
<p>
<button type="submit">Save Client</button>
</p>
</form>
{% include "footer.html" %}
</body>
</html>