diff options
author | marcinzelent <zelent.marcin@gmail.com> | 2017-12-07 13:25:29 +0100 |
---|---|---|
committer | marcinzelent <zelent.marcin@gmail.com> | 2017-12-07 13:25:29 +0100 |
commit | 8147707052ee5281a5749ce1c1b85cc2613658cf (patch) | |
tree | 667dc706f21b121829d0729996d22a634781b6e8 /app/Resources/views | |
parent | df1411e42481f8e788b9b40e3375715979bc7a0c (diff) |
Added train schedule.
Diffstat (limited to 'app/Resources/views')
-rw-r--r-- | app/Resources/views/base.html.twig | 3 | ||||
-rw-r--r-- | app/Resources/views/default/TrainSchedule.html.twig | 32 |
2 files changed, 35 insertions, 0 deletions
diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index 36b2851..f8d8374 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -20,6 +20,9 @@ <a class="navbar-item" href="/LastWeekData"> <span>Last Week Data</span> </a> + <a class="navbar-item" href="/TrainSchedule"> + <span>Train Schedule</span> + </a> </div> </nav> <div class="container"> diff --git a/app/Resources/views/default/TrainSchedule.html.twig b/app/Resources/views/default/TrainSchedule.html.twig new file mode 100644 index 0000000..a2c8572 --- /dev/null +++ b/app/Resources/views/default/TrainSchedule.html.twig @@ -0,0 +1,32 @@ +{% extends 'base.html.twig' %} + +{% block body %} +<table class="table"> + <thead class="thead"> + <tr class="tr"> + <th>Track</th> + <th>Train type</th> + <th>Train number</th> + <th>Destination name</th> + <th>Arrival</th> + <th>Departure</th> + <th>Delay</th> + </tr> + </thead> + <tbody class="tbody"> + <tr class="tr"> + {% for table in data %} + <td class="td">{{ table.Track }}</td> + <td class="td">{{ table.TrainType }}</td> + <td class="td">{{ table.TrainNumber }}</td> + <td class="td">{{ table.DestinationName }}</td> + <td class="td">{{ table.ScheduledArrival }}</td> + <td class="td">{{ table.ScheduledDeparture }}</td> + <td class="td">{{ table.DepartureDelay }}</td> + </tr> + </tbody> + {% endfor %} +</table> +{% endblock %} +{% block javascripts %} +{% endblock %}
\ No newline at end of file |