{% extends 'core/base.html' %}
{% load static %}
{% block title %}Add Product{% endblock title %}
{% 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 {
  display: block; /* Display labels on separate lines */
  font-weight: bold;
  margin-bottom: 5px;
}

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

/* Style the login button */
button.button {
  background-color: #2e4ead;
  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 */
}
.field{
    margin-top: 15px;
}

{% endblock css %}

{% block content %}

    <h1 class="title">Add Product</h1>

    <form method="post" action="" enctype="multipart/form-data">
        {% csrf_token %}

        {{ form.as_p }}

        <div class="field">
            <div class="control">
                <button class="button is-uppercase" style="background-color: #ca373d;">Add Product</button>
            </div>
        </div>
    </form>
<script src='{% static 'js/addDesc.js' %}'></script>
{% endblock content %}