program.html 1.06 KB
Newer Older
fred's avatar
fred committed
1
{% extends "base.html" %}
Simon Daron's avatar
Simon Daron committed
2
{% block bodyID %}Program{% endblock %}
Simon Daron's avatar
Simon Daron committed
3
4
5
6
{% block title %}Programme{% endblock %}
{% block nav %}
<div class="program tabs" data-tab-about="#ProgramContent">
	<nav class="">
Simon Daron's avatar
Simon Daron committed
7
		<ul class="days custom distributed">
8
		{% for day in days %}
Simon Daron's avatar
Simon Daron committed
9
			<li class=""><button data-tab="#Program-tabs-{{ day.datetime|date:"w" }}">{{ day.datetime|date:"D d" }}</button></li>
10
11
12
		{% endfor %}
		</ul>
	</nav>
Simon Daron's avatar
Simon Daron committed
13
14
15
16
</div>
{% endblock %}
{% block main %}
<div id="ProgramContent" class="wrapper">
Simon Daron's avatar
Simon Daron committed
17
	{% for day in days %}
Simon Daron's avatar
Simon Daron committed
18
19
	<div data-tabbed="true" class="content" id="Program-tabs-{{ day.datetime|date:"w" }}">
		<ul class="custom emission-list list padded">
Simon Daron's avatar
Simon Daron committed
20
21
		{% if day.schedules %}
		    {% for schedule in day.schedules %}
Simon Daron's avatar
Simon Daron committed
22
23
			<li>
				<div class="date dateBloc left padded">
Simon Daron's avatar
Simon Daron committed
24
25
					<div class="time">{{ schedule.datetime|date:"H:i" }}</div>
				</div>
Simon Daron's avatar
Simon Daron committed
26
				<div style="margin-left:100px;">{% include "emissions/inline.html" with emission=schedule.emission %}</div>
Simon Daron's avatar
Simon Daron committed
27
28
29
30
31
32
33
34
			</li>
		    {% endfor %}
		{% else %}
			<li>Non stop</li>
		{% endif %}
		</ul>
	</div>
	{% endfor %}
fred's avatar
fred committed
35
36
</div>
{% endblock %}