{% extends "add-edit-main.html" %}
{%load static%}
{% block content %}

<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 Customer
        </h1>

        <form method="POST" action="{% url 'addcustomer' %}">
            {% csrf_token %}
            <div class="w-full flex flex-col gap-5 justify-center items-center mt-5">

                <div class="w-full">
                    <label class="text-gray-500">First Name:</label>
                    <input name="first_name" type="text"
                        class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md mt-1" required>
                </div>

                <div class="w-full">
                    <label class="text-gray-500">Last Name:</label>
                    <input name="last_name" type="text"
                        class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md mt-1" required>
                </div>

                <div class="w-full">
                    <label class="text-gray-500">Email:</label>
                    <input name="email" type="email"
                        class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md mt-1" required>
                </div>

                <div class="w-full">
                    <label class="text-gray-500">Mobile Number:</label>
                    <input name="mobile_number" type="number"
                        class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md mt-1" required>
                </div>

                <div class="w-full">
                    <label class="text-gray-500">Personal Website:</label>
                    <input name="personal_website" type="url"
                        class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md mt-1">
                </div>

                <div class="w-full">
                    <label class="text-gray-500">Status:</label>
                    <select name="status"
                        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="Active">Active</option>
                        <option value="Suspended">Suspended</option>
                        <option value="Terminated">Terminated</option>
                    </select>
                </div>

                <div class="w-full">
                    <label class="text-gray-500">Reference:</label>
                    <select name="referenceid"
                        class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md text-gray-500 mt-1">
                        <option value="" disabled selected>Select Reference</option>
                        {% for reference in references %}
                        <option value="{{reference.id}}">{{reference.name}}</option>
                        {% endfor %}
                    </select>
                </div>

                <input name="password1" type="password" placeholder="Password"
                    class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md" required>
                <input name="password2" type="password" placeholder="Password"
                    class="w-full h-[50px] py-1 px-3 border border-gray-300 outline-none rounded-md" required>

                <div class="w-full flex justify-center items-center mt-3">
                    <button type="submit"
                        class="w-fit py-1 px-3 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 type="text/javascript" src='{% static "js/inputs/upload-input-tag.js" %}'></script>



{% endblock content %}