<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>GhostKitchen</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
    integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>

<body>
  <main>
    <div class="container">
        <div>
            <h3>
                GhostKitchen App
            </h3>
        </div>
        <div class="p-4">
          <div class="display-4">
            Update current Meal:
        </div>
        <hr />
        <div class="col-4">
        <form action="/admin/meals/update/" method="POST">
          <div>
            <input type="hidden" class="form-control" name="mealID" value="<%= mealDetails._id %>" />
          </div>
          <div>
            <label class="form-label" style="font-weight: bold;">Meal Name:
              <input required="true" name="meal_name" type="text" class="form-control"
                value="<%= mealDetails.meal_name %>" /></label>
          </div>

          <div>
            <label class="form-label" style="font-weight: bold;">Description:<%= mealDetails.meal_desc %>
              <input required="true" name="description" type="text" class="form-control"
                value="<%= mealDetails.meal_desc %>" /></label>
          </div>

          <div>
            <label class="form-label" style="font-weight: bold;">Calories:
              <input required="true" name="calories" type="text" class="form-control"
                value="<%= mealDetails.calories %>" /></label>
          </div>
          <div>
            <label class="form-label" style="font-weight: bold;">Price:
              <input required="true" name="price" type="text" class="form-control"
                value="<%= mealDetails.price %>" /></label>

          </div>

          <button type="submit" class="btn btn-primary" name="brandID"
            value="<%= mealDetails.brand_id %>">Update</button>
        </form>
      </div>
    </div>
  </div>
  </main>
</body>

</html>
