Le repo des sources pour le site web des JM2L
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 

520 líneas
22 KiB

  1. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  2. ## Afficher un form
  3. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  4. <%def name="DisplayForm(form, DicFormat)">
  5. <%
  6. TabJs = {'select':[], 'desc':[]}
  7. %>
  8. % for FieldName, Field in form._fields.items():
  9. % if DicFormat.has_key(Field.name) and DicFormat[Field.name].get("Ignore"):
  10. <% continue %>
  11. % endif
  12. % if Field.type in ['HiddenField', 'CSRFTokenField']:
  13. ${Field}
  14. <% continue %>
  15. % elif Field.type=="SelectField":
  16. <% TabJs['select'].append(Field.label.field_id) %>
  17. % endif
  18. % if DicFormat.has_key(Field.name) and DicFormat[Field.name].get("fieldset"):
  19. <fieldset>
  20. <legend>${Field.label.text}</legend>
  21. % else:
  22. % if DicFormat.has_key(Field.name) and DicFormat[Field.name].get("ContainerStyle"):
  23. <div style="padding-right:5px;${DicFormat[Field.name].get("ContainerStyle")}">
  24. % else:
  25. <div style="padding-right:5px;">
  26. % endif
  27. <label for="${Field.label.field_id}">${Field.label.text}
  28. % if Field.description:
  29. <% TabJs['desc'].append(Field.label.field_id) %>
  30. <a id="${Field.label.field_id}-help" data-toggle="popover"
  31. data-original-title="${Field.label.text}"
  32. data-content="${Field.description}">
  33. <i class="icon-me" style="background-image: url('/img/Help.png');background-position:1px 2px;"></i>
  34. </a>
  35. % endif
  36. </label>
  37. % endif
  38. % if DicFormat.has_key(Field.name):
  39. <%
  40. PlaceHolder = DicFormat[Field.name].get("PlaceHolder")
  41. FieldStyle = DicFormat[Field.name].get("FieldStyle")
  42. Class = [None,"ckeditor"][ DicFormat[Field.name].has_key("ckeditor") ]
  43. %>
  44. ${Field(placeholder=PlaceHolder, style=FieldStyle, class_=Class)}
  45. % else:
  46. ${Field()}
  47. % endif
  48. % for error in Field.errors:
  49. <div class="alert alert-error">
  50. <button type="button" class="close" data-dismiss="alert">&times;</button>
  51. <h4>Erreur!</h4>
  52. ${ error }
  53. </div>
  54. % endfor
  55. % if DicFormat.has_key(Field.name) and DicFormat[Field.name].get("fieldset"):
  56. </fieldset>
  57. % else:
  58. </div>
  59. % endif
  60. % endfor
  61. <%
  62. for jsitem in TabJs['select']:
  63. context._kwargs['postpone_js'].append( "$('#%s').select2({});" % jsitem )
  64. for jsitem in TabJs['desc']:
  65. context._kwargs['postpone_js'].append( "$('#%s-help').popover();" % jsitem )
  66. %>
  67. </%def>
  68. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  69. ## Wrapper pour la form Sejour
  70. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  71. <%def name="sejour_wrapper(Places)">
  72. <div class="form-inline">
  73. Départ :
  74. <select style="width:12em;" id="Arrival:Place" name="Arrival:Place" title="Lieu">
  75. % for place in Places:
  76. <option value="${place.place_id}">${place.display_name}</option>
  77. % endfor
  78. </select>
  79. </div>
  80. <br />
  81. <div class="form-inline">
  82. Arrivée :
  83. <select style="width:12em;" id="Arrival:Place" name="Arrival:Place" title="Lieu">
  84. % for place in Places:
  85. <option value="${place.place_id}">${place.display_name}</option>
  86. % endfor
  87. </select>
  88. </div>
  89. </%def>
  90. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  91. ## Wrapper pour la form Itineraire
  92. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  93. <%def name="itin_wrapper(itin_form)">
  94. <div style="padding:5px;">
  95. <div style="float:left;padding-right:5px;">
  96. <label for="${itin_form.start_place.label.field_id}">
  97. ${itin_form.start_place.label}
  98. </label>
  99. % for error in itin_form.start_place.errors:
  100. <div class="alert error">Le Depart ${ error }</div>
  101. % endfor
  102. ${itin_form.start_place(style='width:17em;')},
  103. </div>
  104. <div>
  105. <label for="${itin_form.arrival_place.label.field_id}">
  106. ${itin_form.arrival_place.label}
  107. </label>
  108. % for error in itin_form.arrival_place.errors:
  109. <div class="alert error">Arrivee ${ error }</div>
  110. % endfor
  111. ${itin_form.arrival_place(style='width:17em;')}
  112. </div>
  113. <div style="padding:5px;">
  114. <small style="color:#999">Si je n´ai pas trouvé le lieu dont j´ai besoin dans ces listes...</small>
  115. <br />
  116. <small style="color:#999">Je peux </small>
  117. <a class="btn btn-mini btn-info" role="button" href="javascript:DoGetLieu('/2015/modal/Place/0');">
  118. <i class="icon-plus-sign icon-white"></i> Ajouter un lieu
  119. </a>
  120. </div>
  121. </div>
  122. <script>
  123. $("#${itin_form.start_place.label.field_id}").select2({});
  124. $("#${itin_form.arrival_place.label.field_id}").select2({});
  125. </script>
  126. </%def> \
  127. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  128. ## Wrapper pour afficher les fichiers
  129. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  130. <%def name="medias(MediaType, UID, desc=None)"> \
  131. </%def>
  132. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  133. ## Wrapper pour uploader
  134. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  135. <%def name="uploader(MediaType, UID, desc=None)"> \
  136. <!-- The file upload form used as target for the file upload widget -->
  137. <form class="fileupload" id="fileupload_${MediaType}" action="/uploader/${MediaType}/${UID}/proceed" method="POST" enctype="multipart/form-data">
  138. <!-- Redirect browsers with JavaScript disabled to the origin page -->
  139. <noscript><input type="hidden" name="redirect" value="/"></noscript>
  140. <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
  141. <div class="fileupload-buttonbar">
  142. <!-- The fileinput-button span is used to style the file input field as button -->
  143. <span class="btn btn-success fileinput-button">
  144. <i class="icon-plus icon-white"></i>
  145. % if desc:
  146. <span>Ajouter ${desc}</span>
  147. % else:
  148. <span>Ajouter</span>
  149. % endif:
  150. <input type="file" name="files[]" multiple>
  151. </span>
  152. <!-- The global file processing state -->
  153. <span class="fileupload-process"></span>
  154. <!-- The global progress state -->
  155. <div class="fileupload-progress fade" style="float:right;">
  156. <!-- The global progress bar -->
  157. <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
  158. <div class="bar progress-bar progress-bar-success" style="width:0%;"></div>
  159. </div>
  160. <!-- The extended global progress state -->
  161. <div class="progress-extended">&nbsp;</div>
  162. </div>
  163. </div>
  164. <!-- The table listing the files available for upload/download -->
  165. <table role="presentation" class="table table-striped"><tbody class="files"></tbody></table>
  166. </form>
  167. </%def> \
  168. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  169. ## Wrapper pour uploader - Partie JavaScript
  170. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  171. <%def name="uploader_js()"> \
  172. <!-- The template to display files available for upload -->
  173. <script id="template-upload" type="text/x-tmpl">
  174. {% for (var i=0, file; file=o.files[i]; i++) { %}
  175. <tr class="template-upload fade">
  176. <td style="width: 80px;">
  177. <span class="preview"></span>
  178. </td>
  179. <td>
  180. <p class="name">{%=file.name%}</p>
  181. <strong class="error text-danger"></strong>
  182. <p class="size">Processing...</p>
  183. <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="bar progress-bar progress-bar-success" style="width:0%;"></div></div>
  184. </td>
  185. <td style="width: 85px;">
  186. {% if (!i && !o.options.autoUpload) { %}
  187. <button class="btn-mini btn-primary start" disabled style="width: 80px;">
  188. <i class="icon-upload icon-white"></i>
  189. <span>Upload</span>
  190. </button>
  191. {% } %}
  192. {% if (!i) { %}
  193. <button class="btn-mini btn-warning cancel" style="width: 80px;">
  194. <i class="icon-ban-circle icon-white"></i>
  195. <span>Annuler</span>
  196. </button>
  197. {% } %}
  198. </td>
  199. </tr>
  200. {% } %}
  201. </script>
  202. <!-- The template to display files available for download -->
  203. <script id="template-download" type="text/x-tmpl">
  204. {% for (var i=0, file; file=o.files[i]; i++) { %}
  205. <tr class="template-download fade">
  206. <td style="width: 80px;">
  207. <span class="preview">
  208. {% if (file.thumbnailUrl) { %}
  209. <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
  210. {% } %}
  211. </span>
  212. </td>
  213. <td>
  214. <p class="name">
  215. {% if (file.url) { %}
  216. <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
  217. {% } else { %}
  218. <span>{%=file.name%}</span>
  219. {% } %}
  220. </p>
  221. <p><span class="size">{%=o.formatFileSize(file.size)%}</span></p>
  222. {% if (file.error) { %}
  223. <div><span class="label label-danger">Erreur</span> {%=file.error%}</div>
  224. {% } %}
  225. </td>
  226. <td style="width: 85px;">
  227. {% if (file.deleteUrl) { %}
  228. <button class="btn-mini btn-danger delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
  229. <i class="icon-trash icon-white"></i>
  230. <span>Suppr.</span>
  231. </button>
  232. <input type="checkbox" name="delete" value="1" class="toggle">
  233. {% } else { %}
  234. <button class="btn-mini btn-warning cancel">
  235. <i class="icon-ban-circle icon-white"></i>
  236. <span>Annuler</span>
  237. </button>
  238. {% } %}
  239. </td>
  240. </tr>
  241. {% } %}
  242. </script>
  243. </%def> \
  244. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  245. ## Wrapper pour les intervention utilisateur
  246. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  247. <%def name="show_Interventions(ListEvent, HeadTitle=None, NotFoundTitle=None)"> \
  248. <table width="100%" class="table table-striped table-bordered table-hover">
  249. <tr>
  250. <th style="width:6em;text-align:center;">Date</th>
  251. % if HeadTitle:
  252. <th style="text-align:center;">${HeadTitle}</th>
  253. % else:
  254. <th style="text-align:center;">L'historique des interventions</th>
  255. % endif
  256. </tr>
  257. % if len(ListEvent)==0:
  258. <tr>
  259. <td style="text-align:center;" colspan="2">
  260. % if NotFoundTitle:
  261. <i>${NotFoundTitle}</i>
  262. % else:
  263. <i>Désolé, Il n'y a rien dans l'historique.</i>
  264. % endif
  265. </td>
  266. </tr>
  267. % else:
  268. % for event in ListEvent:
  269. <tr>
  270. <td style="text-align:center;">
  271. <%
  272. start = event.start_time.time()
  273. end = event.end_time.time()
  274. vid = event.video.first()
  275. pres = event.presentation.first()
  276. %>
  277. ${event.start_time.strftime('%d %b %Y').decode('utf-8')}
  278. ${start.hour}:${"%.2d" % start.minute}-${end.hour}:${"%.2d" % end.minute}
  279. </td>
  280. <td style="position: relative;">${event.event_type}:
  281. <strong>
  282. <a href="/event/${event.for_year}/${event.slug}">${event.name}</a>
  283. </strong>
  284. <span style="float:right;">
  285. % if vid:
  286. <a href="${vid.get_path}">
  287. <i class="icon-film"></i>
  288. </a>
  289. % endif
  290. % if pres:
  291. <a href="${pres.get_path}">
  292. <i class="icon-list-alt"></i>
  293. </a>
  294. % endif
  295. </span>
  296. % if event.Salle:
  297. <div style="position: absolute; bottom: 2px; right: 5px;">
  298. ${event.Salle.name}
  299. </div>
  300. % endif
  301. <br/>
  302. % if event.intervenants.count()>1:
  303. avec
  304. % for num, inter in enumerate(event.intervenants.all()):
  305. <%
  306. if inter==uprofil:
  307. continue
  308. %>
  309. <a href="/user/${inter.slug}">${inter.prenom} ${inter.nom}</a>,
  310. % endfor
  311. % endif
  312. </td>
  313. </tr>
  314. % endfor
  315. % endif
  316. </table>
  317. </%def>
  318. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  319. ## Wrapper pour les badges des entités utilisateur
  320. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  321. <%def name="show_SummaryEntities(ListEntities)"> \
  322. <ul class="thumbnails">
  323. % for tiers in ListEntities:
  324. <% Entity = tiers.get_entity_type %>
  325. <li class="span3 tiers">
  326. <div class="media">
  327. <a class="pull-left" href="/entity/${Entity.entity_type}/${tiers.slug}">
  328. % if tiers.ThumbLinks:
  329. <img class="media-object" src="${tiers.ThumbLinks.pop()}" />
  330. % else:
  331. <img class="media-object" src="/img/no-image-thumb.jpg" />
  332. % endif
  333. </a>
  334. <div class="media-body">
  335. %if Entity.entity_subtype!=Entity.entity_type:
  336. <h5 style="margin:0">${Entity.entity_type} ${Entity.entity_subtype}</h5>
  337. %else:
  338. <h5 style="margin:0">${Entity.entity_type}</h5>
  339. %endif
  340. <a href="/entity/${Entity.entity_type}/${tiers.slug}">
  341. <h4 class="media-heading">${tiers.name}</h4>
  342. </a>
  343. % if Entity.entity_role:
  344. <span><i>${Entity.entity_role}</i></span>
  345. % endif
  346. </div>
  347. </div>
  348. </li>
  349. % endfor
  350. </ul>
  351. </%def>
  352. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  353. ## Wrapper pour les photos
  354. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  355. <%def name="show_my_pictures(uprofil)"> \
  356. <div class="profile-icon" style="float:right;height:250px;width:250px;">
  357. <% photos = uprofil.PhotosLinks %>
  358. <div style="text-align: center;line-height:20px;">
  359. <a data-target="#AjaxModal" Myhref="/2015/modal/Password/1" role="button" handle="modal">Changer mon mot de passe</a>
  360. </div>
  361. <div style="text-align: center;line-height:20px;">
  362. <a data-target="#AjaxModal" Myhref="/2015/modal/UserPicture/${uprofil.uid}" handle="modal">Changer ma photo</a>
  363. </div>
  364. <div id="MyPictureCarousel" class="carousel slide">
  365. % if len(photos)>1:
  366. <!-- Carousel nav -->
  367. <a class="Ucarousel-control left" href="#MyPictureCarousel" data-slide="prev">&lsaquo;</a>
  368. <a class="Ucarousel-control right" href="#MyPictureCarousel" data-slide="next">&rsaquo;</a>
  369. % endif
  370. <!-- Carousel items -->
  371. <div class="carousel-inner" style="height: 220px;">
  372. % if len(photos):
  373. % for num, link in enumerate(photos):
  374. <div class="${['','active '][num==0]}item" id="UserPic${num}">
  375. <div style="margin:auto;">
  376. <img src="${link}" class="img-polaroid" style="max-height:205px;max-width:235px;" alt="Photo ${uprofil.slug}" />
  377. </div>
  378. </div>
  379. % endfor
  380. % else:
  381. <div class="active item" id="UserPic0">
  382. <div style="margin:auto;width:170px;">
  383. <img src="/img/default-user.png" class="img-polaroid" alt="Photo ${uprofil.slug}" style="max-height:205px;" />
  384. </div>
  385. </div>
  386. % endif
  387. </div>
  388. </div>
  389. </div>
  390. </%def> \
  391. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  392. <%def name="show_pictures(uprofil)"> \
  393. <div class="profile-icon pull-right">
  394. <% photos = uprofil.PhotosLinks %>
  395. <div id="MyPictureCarousel" class="carousel slide">
  396. % if len(photos)>1:
  397. <!-- Carousel nav -->
  398. <a class="Ucarousel-control left" href="#MyPictureCarousel" data-slide="prev">&lsaquo;</a>
  399. <a class="Ucarousel-control right" href="#MyPictureCarousel" data-slide="next">&rsaquo;</a>
  400. % endif
  401. <!-- Carousel items -->
  402. <div class="carousel-inner" style="height: 220px;">
  403. % if len(photos):
  404. % for num, link in enumerate(photos):
  405. <div class="${['','active '][num==0]}item" id="UserPic${num}">
  406. <div style="margin:auto;">
  407. <img src="${link}" class="img-polaroid" style="max-height:205px;max-width:235px;" alt="Photo ${uprofil.nom} ${uprofil.prenom}" />
  408. </div>
  409. </div>
  410. % endfor
  411. % else:
  412. <div class="active item" id="UserPic0">
  413. <div style="margin:auto;width:170px;">
  414. <img src="/img/default-user.png" class="img-polaroid" alt="Photo ${uprofil.nom} ${uprofil.prenom}" style="max-height:205px;" />
  415. </div>
  416. </div>
  417. % endif
  418. </div>
  419. </div>
  420. </div>
  421. </%def> \
  422. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  423. ## Wrapper pour les échanges utilisateurs
  424. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  425. <%def name="show_exchange(Exchange, Asker, Provider)"> \
  426. <div class="media">
  427. % if Asker:
  428. <a class="pull-left" href="/user/${Asker.slug}">
  429. % if Asker.PhotosThumb:
  430. <img class="media-object"
  431. src="${Asker.PhotosThumb.pop()}"
  432. alt="${Asker.prenom} ${Asker.nom}"/>
  433. % else:
  434. <img class="media-object"
  435. src="/img/no-image-thumb.jpg"
  436. alt="${Asker.prenom} ${Asker.nom}"/>
  437. % endif
  438. </a>
  439. % else:
  440. <a class="pull-left" href="#">
  441. <img class="media-object" src="/img/personne.jpg" alt="Personne"/>
  442. </a>
  443. % endif
  444. % if Provider:
  445. <a class="pull-right" href="/user/${Provider.slug}">
  446. % if Provider.PhotosThumb:
  447. <img class="media-object"
  448. src="${Provider.PhotosThumb.pop()}"
  449. alt="${Provider.prenom} ${Provider.nom}"/>
  450. % else:
  451. <img class="media-object"
  452. src="/img/no-image-thumb.jpg"
  453. alt="${Provider.prenom} ${Provider.nom}"/>
  454. % endif
  455. </a>
  456. % else:
  457. <a class="pull-right" href="#">
  458. <img class="media-object" src="/img/personne.jpg" alt="Personne"/>
  459. </a>
  460. %endif
  461. <div class="media-body">
  462. <table style="width:100%">
  463. <tr>
  464. <td style="text-align:left;vertical-align:middle;width:40%">
  465. % if Asker:
  466. Demande de<br>
  467. <a href="/user/${Asker.slug}">${Asker.prenom} ${Asker.nom}</a>
  468. % else:
  469. <i>Pas de réponse</i>
  470. % endif
  471. </td>
  472. <td>
  473. % if Exchange.exch_done:
  474. <img class="media-object" src="/img/echange.png" alt="Echange"/>
  475. % elif Exchange.exch_state=='Ask':
  476. <img class="media-object" src="/img/asker.png" alt="Cherche"/>
  477. % elif Exchange.exch_state=='Proposal':
  478. <img class="media-object" src="/img/provider.png" alt="Propose"/>
  479. % endif
  480. </td>
  481. <td style="text-align:right;vertical-align:middle;width:40%">
  482. %if Provider:
  483. Proposition de<br>
  484. <a href="/user/${Provider.slug}">${Provider.prenom} ${Provider.nom}</a>
  485. % else:
  486. <i>Pas de réponse</i>
  487. % endif
  488. </td>
  489. </tr>
  490. </table>
  491. </div>
  492. </div>
  493. </%def> \
  494. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  495. ## Wrapper pour les addresses pour les utilisateurs
  496. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  497. <%def name="show_address(Place)"> \
  498. <address>
  499. <strong>${Place.display_name}</strong> ( ${Place.place_type} )<br>
  500. ${Place.name}<br>
  501. % if Place.specific:
  502. ${Place.specific}<br>
  503. % endif
  504. ${Place.adresse}<br>
  505. ${Place.codePostal} ${Place.ville}<br>
  506. </address>
  507. </%def> \
  508. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  509. ## Wrapper pour la description des places
  510. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  511. <%def name="show_desc(Place)"> \
  512. % if Place.description:
  513. ${Place.description | n}
  514. % endif
  515. </%def> \