1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
<%inherit file="jm2l:templates/layout.mako"/>
<%
TabDisplay = [
(u'Tables rondes', 'Table ronde'),
(u'Conférences', 'Conference'),
(u'Ateliers', 'Atelier'),
(u'Stands', 'Stand'),
]
%>
<style>
.myblock {
background-color:#EEE;
border: 1px solid #ccc;
height: 65px;
}
.Conference {
fill:#f9fde8;
stroke: #a2bc13;
}
.Concert {
fill:#2EE;
stroke: #ccc;
}
.Atelier {
fill: #faebeb;
stroke: #dc7070;
}
.Table-ronde {
fill: #fff4e5;
stroke: #ff9912;
}
.Repas {
fill:#2EE;
stroke: #ccc;
}
svg {
font: 10px sans-serif;
shape-rendering: crispEdges;
}
rect {
stroke-width: 0px;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
}
</style>
<h2>Le Programme ${DisplayYear}</h2>
<div class="row">
<div class="tabbable" id="main_tab">
<ul class="nav nav-tabs" style="margin-bottom: 5px;">
% for Num, (Day, IdDay) in enumerate(Days):
<li class="${['','active'][Num==0]}"><a href="#Day${Num}" id="Schedule_${Num}" data-toggle="tab">${Day}</a></li>
% endfor
</ul>
<div class="tab-content" style="padding:0">
% for Num, (Day, IdDay) in enumerate(Days):
<div class="tab-pane fade ${['','active '][Num==0]}in" id="Day${Num}">
## Container for SVG version of Programme
<div id="Schedule_SVG_${IdDay}">
</div>
</div>
% endfor
</div>
</div>
</div>
<div id="DivProg" style="border: 1px solid black;"></div>
##<div class="accordion" id="accordionEvent">
% for num, (Title, EvtType) in enumerate( TabDisplay ):
<%
Counter = Events.filter(Event.event_type==EvtType).count()
if Counter==0:
continue
%>
## <div class="accordion-group">
## <div class="accordion-heading">
## <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordionEvent" href="#collapseEvent${num}">
## ${Counter} ${Title}
## </a>
## </div>
## <div id="collapseEvent${num}" class="accordion-body collapse">
## <div class="accordion-inner">
<table width="100%" class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th style="width:7em;text-align:center;">Date</th>
<th style="text-align:center;">Sujet - ${Counter} ${Title}</th>
</tr>
</thead>
<tbody>
% for event in Events.filter(Event.event_type==EvtType):
<tr>
<td style="text-align:center;">
<%
vid = event.video.first()
pres = event.presentation.first()
%>
${event.start_time.strftime("%a %d %b")}<br>
${event.start_time.strftime("%H:%M")} - ${event.end_time.strftime("%H:%M")}
</td>
<td style="position: relative;">
<strong>
<a href="/event/${event.for_year}/${event.slug}">${event.name}</a>
</strong>
<span style="float:right;">
% if vid:
<a href="${vid.get_path}">
<i class="icon-film"></i>
</a>
% endif
% if pres:
<a href="${pres.get_path}">
<i class="icon-list-alt"></i>
</a>
% endif
</span>
<br/>
avec
% for num, inter in enumerate(event.intervenants.all()):
%if num>0:
,
%endif
<a href="/user/${inter.slug}">${inter.prenom} ${inter.nom}</a>
% endfor
% if event.Salle:
<div style="position: absolute; bottom: 2px; right: 5px;">
${event.Salle.name}
</div>
% endif
</td>
</tr>
% endfor
</tbody>
</table>
## </div>
## </div>
## </div>
% endfor
##</div>
<br/><br/>
<script type="text/javascript" src="/vendor/d3js/d3.v3.min.js"></script>
<script type="text/javascript" src="/js/programme.js"></script>
|