20 lines
569 B
HTML
20 lines
569 B
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title>Edit Enquiry</title>
|
||
|
|
<script src="https://unpkg.com/htmx.org@1.6.1"></script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<h1>Enquiry Form</h1>
|
||
|
|
<form method="post">
|
||
|
|
{% csrf_token %}
|
||
|
|
{{ form.as_p }}
|
||
|
|
<label for="customer">Customer:</label>
|
||
|
|
<input type="text" id="customer" name="term" hx-post="{% url 'customer_autocomplete' %}" hx-trigger="keyup changed delay:500ms" hx-target="#customer-list" autocomplete="off">
|
||
|
|
<ul id="customer-list"></ul>
|
||
|
|
|
||
|
|
<button type="submit">Save</button>
|
||
|
|
</form>
|
||
|
|
</body>
|
||
|
|
</html>
|