From 9f0f6af57964bf04a166009a2ea687629a4c6519 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Tue, 02 May 2017 16:08:11 +0000 Subject: [PATCH] Show list of object when ambiguous one is selected --- index.html | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b6bc991..f4e3a0e 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <link rel="stylesheet" type="text/css" href="index.css"> + <style type="text/css" id="vehicle-data-style"></style> </head> <body> <nav class="navbar navbar-default"> @@ -32,12 +33,12 @@ <form class="navbar-form navbar-left"> <div class="input-group"> <span class="input-group-btn"> - <input type="text" class="form-control form-round-left" id="stop-name" placeholder="Stop name" autofocus="autofocus" /> + <input type="text" class="form-control form-round-left" id="stop-name" placeholder="Nazwa przystanku" autofocus="autofocus" /> </span> <select class="form-control" id="stop-name-autocomplete"> </select> <span class="input-group-btn"> - <button type="submit" class="btn btn-default" data-translate="go_button">Go</button> + <button type="submit" class="btn btn-default" data-translate="go_button">Dalej</button> </span> </div> </form> @@ -63,7 +64,11 @@ <thead> <tr> <th data-translate="header_line">Linia</th> - <th data-translate="header_direction">Kierunek</th> + <th> + <span data-translate="header_direction">Kierunek</span> + <a id="vehicle-data" data-translate="header_vehicle">Pojazd</span> + </th> + <th data-translate="header_vehicle" class="vehicleData">Pojazd</th> <th data-translate="header_time">Czas</th> <th data-translate="header_delay">Opóźn.</th> </tr> @@ -93,6 +98,8 @@ <h3 id="route-line"></h3> + <p id="route-vehicle"></p> + <table class="table table-condensed"> <thead> <tr> -- Gitblit v1.9.1