From 49613e9effe56886bca2ccc3288e611e91525dd1 Mon Sep 17 00:00:00 2001 From: Paul Wallace <paulwallace@pauls-air.dynamic.ucsd.edu> Date: Thu, 27 Oct 2016 18:52:03 -0700 Subject: [PATCH] Comments for index.ejs --- views/pages/index.ejs | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/views/pages/index.ejs b/views/pages/index.ejs index 374effe..b6e6fd0 100644 --- a/views/pages/index.ejs +++ b/views/pages/index.ejs @@ -4,6 +4,7 @@ <!-- <% include ../partials/header %> --> </head> +<!-- Homepage --> <body> <div class="container-fluid"> @@ -13,29 +14,38 @@ </div> <!--What are for and type for?--> - + <!-- current submit button takes you to the landing page --> <form action="/landing"> + <!-- First text field and label above the text field for current location --> <div class="form-group text-center"> <label for="currentLocation">From</label> <input type="currentLocation" class="form-control" placeholder="Enter Current Location"> </div> + <!-- Second text field and label above the text field for destination --> <div class="form-group text-center"> <label for="destination">To</label> <input type="destination" class="form-control" placeholder="Enter Destination"> </div> - <div class="row"> - <button type="button" class="btn-default col-xs-4"> - <img class="img-responsive" src="images/pedestrian-walking.svg" alt="Walking Option" width="40" height="40"> - </button> - <button type="button" class="btn-default col-xs-4"> - <img class="img-responsive" src="images/car-compact.svg" alt="Walking Option" width="40" height="40"> - </button> - <button type="button" class="btn-default col-xs-4" onclick="javascript:autofill();"> - <img class="img-responsive" src="images/bus.svg" alt="Walking Option" width="40" height="40"> - </button> - </div> + <!-- First travel option button, walking + This contains a row that holds buttons of type button. Buttons are highlighted upon selection. + --> + <div class="row"> + <button type="button" class="btn-default col-xs-4"> + <img class="img-responsive" src="images/pedestrian-walking.svg" alt="Walking Option" width="40" height="40"> + </button> + + <!-- Second travel button, driving --> + <button type="button" class="btn-default col-xs-4"> + <img class="img-responsive" src="images/car-compact.svg" alt="Walking Option" width="40" height="40"> + </button> + + <!-- Third travel button, bus --> + <button type="button" class="btn-default col-xs-4" onclick="javascript:autofill();"> + <img class="img-responsive" src="images/bus.svg" alt="Walking Option" width="40" height="40"> + </button> + </div> <div class="text-center"> <button type="submit" class="btn btn-primary btn-space">Go</button> -- 1.9.1