<!DOCTYPE html>
<html lang="en">
  <head>
    <title></title>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link
      href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
      rel="stylesheet"
      integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
      crossorigin="anonymous"
    />
  </head>
  <body>
    <div class="row">
      <div class="col-3"></div>
      <div class="col-6 m-3">
        <div class="card">
          <div class="card-header">
            <div class="text-center">
              <h1>Add New Product</h1>
            </div>
          </div>
          <div class="card-body">
            <form action="/product" method="post">
              <div>
                <label for="name">Enter Product Name : </label>
                <input
                  type="text"
                  name="name"
                  id="name"
                  placeholder="Product Name"
                  class="form-control"
                />
              </div>
              <div>
                <label for="price">Enter Product Price : </label>
                <input
                  type="number"
                  name="price"
                  id="price"
                  placeholder="Product Price"
                  class="form-control"
                />
              </div>

              <div class="text-center">
                <button type="submit" class="btn btn-primary m-2">
                  Add Product
                </button>
                <button class="btn btn-danger m-2">
                  <a href="/product" class="text-white text-decoration-none">Back</a>
                </button>
              </div>
            </form>
          </div>
        </div>
      </div>
      <div class="col-3"></div>
    </div>

    <script
      src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
      integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
      crossorigin="anonymous"
    ></script>
  </body>
</html>
