4 changed files with 144 additions and 5 deletions
@ -0,0 +1,74 @@ |
|||||||
|
<!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> |
||||||
|
|
||||||
|
</body> |
||||||
|
</html> |
||||||
Loading…
Reference in new issue