2015-03-27 17:07:06 +00:00
|
|
|
{% extends "layout.html" -%}
|
|
|
|
{% set active_page = "home" -%}
|
2015-03-28 22:06:36 +00:00
|
|
|
|
|
|
|
{% import "utils.html" as util -%}
|
|
|
|
|
2015-03-27 20:57:37 +00:00
|
|
|
{% block container %}
|
2015-03-27 00:07:43 +00:00
|
|
|
<div class="jumbotron">
|
2015-03-25 23:17:43 +00:00
|
|
|
<h2>Welcome to FoodBot</h2>
|
|
|
|
<h3>This is the home page for FoodBot</h3>
|
|
|
|
</div>
|
2015-03-28 19:38:15 +00:00
|
|
|
<div class="row">
|
2015-03-29 22:23:59 +00:00
|
|
|
<div class="col-sm-5">
|
2015-03-28 19:38:15 +00:00
|
|
|
<h3>Open orders:</h3>
|
2015-03-28 22:06:36 +00:00
|
|
|
{% for order in orders %}
|
|
|
|
{{ util.render_order(order) }}
|
|
|
|
{% endfor %}
|
2015-03-28 19:38:15 +00:00
|
|
|
</div>
|
2015-03-29 22:23:59 +00:00
|
|
|
<div class="col-sm-5 col-sm-push-2">
|
2015-03-28 20:25:55 +00:00
|
|
|
<h3>Recently closed orders:</h3>
|
2015-03-28 22:06:36 +00:00
|
|
|
{% for order in recently_closed %}
|
|
|
|
{{ util.render_order(order) }}
|
|
|
|
{% endfor %}
|
2015-03-28 20:25:55 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2015-03-28 19:38:15 +00:00
|
|
|
</div>
|
2015-03-25 23:17:43 +00:00
|
|
|
{% endblock %}
|