<!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">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>AutoPark</title>

    <!-- Bootstrap core CSS -->
    <link href="../public/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="../public/css/starter-template.css" rel="stylesheet">

  </head>

<body>
        <nav class="navbar navbar-inverse navbar-fixed-top">
                <div class="container">
                  <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                      <span class="sr-only">Toggle navigation</span>
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="/users/home">Auto Park</a>
                  </div>
                  <div id="navbar" class="collapse navbar-collapse">
                    <ul class="nav navbar-nav">
                      <li class="active"><a href="/users/home">Welcome</a></li>
                      <li><a href="/users/loginpage">Login</a></li>
                      <li><a href="/users/registerpage">Register</a></li>
                        <li><a href="/users/dynamicprice">Price</a></li>
                      <li><a href="/users/about">About</a></li>
                    </ul>
                  </div><!--/.nav-collapse -->
                </div>
              </nav>
    <h1>Cancel Reservation</h1>
    <form method = 'POST' action = '/reservation/cancel'>
        <h2>Select the reservation you want to cancel:</h2>
        Reservations:<br>
        <input name="datefield" type='datetime-local'></input><br><br>
        
        <!-- <input type = 'submit' value = 'Create Reservation' name = 'makeRes'> -->
        <button id="cancelRes">Cancel Reservation</button>
        <script>document.getElementById("cancelRes").onclick = () => {
            location.href = "/reservation/form"
        } 
        </script>
    </form>
    
</body>
</html>
