You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
3.0 KiB
HTML
71 lines
3.0 KiB
HTML
{% extends "add-edit-main.html" %}
|
|
{%load static%}
|
|
{% block content %}
|
|
|
|
<!-- TO ENABLE THE SEARCH FUNCTIONALITY IN THE SELECT TAG -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.15.2/css/selectize.min.css" />
|
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.15.2/js/selectize.min.js"></script>
|
|
|
|
|
|
<div class="w-full px-5 s:px-9 mb-5">
|
|
<div class="w-full h-full shadow-md rounded-md py-5 px-3 bg-white">
|
|
<h1 class="text-3xl text-secondosiblue text-center font-semibold">
|
|
Add Order
|
|
</h1>
|
|
|
|
|
|
<form method="POST" action="{% url 'addorder' %}" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
<div class="w-full flex flex-col gap-5">
|
|
<div class="w-full">
|
|
<label class="text-gray-500">Customer:</label>
|
|
<select name="customer" id="customersSelectTag"
|
|
class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md text-gray-500 mt-1"
|
|
required>
|
|
<option selected disabled>Select Customer</option>
|
|
{% for customer in customers %}
|
|
<option value="{{customer.id}}">{{customer.user.first_name}} {{customer.user.last_name}}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
|
|
<div class="w-full">
|
|
<label class="text-gray-500">Status:</label>
|
|
<select name="status" id=""
|
|
class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md text-gray-500 mt-1"
|
|
required>
|
|
<option value="Completed">Completed</option>
|
|
<option value="Failed">Failed</option>
|
|
<option value="Cancelled">Cancelled</option>
|
|
<option value="None">None</option>
|
|
</select>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="w-full">
|
|
<label class="text-gray-500">Items:</label>
|
|
<select name="items" id="itemsSelectTag"
|
|
class="border border-gray-300 p-3 rounded-md outline-none w-full text-gray-500 mt-1" multiple
|
|
required>
|
|
<option disabled>Select Customer First</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="w-full flex justify-center items-center mt-3">
|
|
<button type="submit"
|
|
class="w-fit py-1 px-5 bg-osiblue rounded-md outline-none text-white border border-osiblue text-xl cursor-pointer hover:bg-white hover:text-osiblue duration-300">Save</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<!---------------------- JS SCRIPTS -------------------->
|
|
<script src="{% static 'js/billing/add-order.js' %}"></script>
|
|
|
|
|
|
|
|
{% endblock %} |