Le repo des sources pour le site web des JM2L
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

160 line
4.4 KiB

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