{% extends 'core/base.html' %}

{% block title %}Edit vendor | {% endblock %}
{% block css %}

/* Style the entire form */
form {
  max-width: 400px; /* Adjust the maximum width as needed */
  margin: 0 auto; /* Center the form horizontally */
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
}

/* Style the form elements */
label {
    color: black;
  display: block; /* Display labels on separate lines */
  font-weight: bold;
  margin-bottom: 5px;
}
p{
    color: black;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Style the login button */
button.button {
  background-color: #ca373d;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  width: 100%; /* Make the button fill the width of the form */
}

{% endblock css %}
{% block content %}
    <h1 class="title">Edit vendor</h1>

    <form method="post" action=".">
        {% csrf_token %}

        <div class="field">
            <label>Vendor name</label>
            <div class="control">
                <input type="text" name="name" id="id_name" value="{{ vendor.name }}" class="input">
            </div>
        </div>

        <div class="field">
            <label>E-mail</label>
            <div class="control">
                <input type="email" name="email" id="id_email" value="{{ vendor.created_by.email }}" class="input">
            </div>
        </div>

        <div class="field">
            <label>GST Number</label>

            <div class="control">
                <input type="text" name="name" id="id_name"" class="input">
            </div>
        </div>

        <div class="field">
            <label>Aadhar Number</label>

            <div class="control">
                <input type="text" name="name" id="id_name"" class="input">
            </div>
        </div>

        <div class="field">
            <label>Upload IEC Document</label>

            <div class="control">
                <input type="file" name="upload" id="id_name"" class="input">
            </div>
        </div>

        <div class="field">
            <div class="control">
                <button class="button is-uppercase">Save changes</button>
            </div>
        </div>
    </form>
{% endblock %}