Le repo des sources pour le site web des JM2L
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

52 lignes
2.1 KiB

  1. <%namespace name="helper" file="jm2l:templates/helpers.mako"/>
  2. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  3. ## Détail de l'échange d'hébergement
  4. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  5. <%def name="ShowH(Exch)"> \
  6. ${helper.show_exchange(Exch, Exch.asker, Exch.provider)}
  7. <dl>
  8. <dt>Quoi</dt>
  9. % if Exch.Category:
  10. <dd>${Exch.Category.exch_subtype}</dd>
  11. % else:
  12. <dd>Un hébergement</dd>
  13. % endif
  14. <dt>Quand </dt>
  15. <dd>La nuit du ${Exch.start_time.strftime('%A %d %b %Y').decode('utf-8')} jusqu'au lendemain</dd>
  16. % if Exch.description:
  17. <dt>Détails </dt>
  18. <dd>${Exch.description}</dd>
  19. % endif
  20. </dl>
  21. </%def> \
  22. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  23. ## Proposition d'hébergement
  24. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  25. <%def name="Heberg_Proposal(form)"> \
  26. <% ## PlaceHolder, ContainerStyle, FieldStyle
  27. DicFormat = {
  28. "Day_start" :{'ContainerStyle':'float:left;', 'FieldStyle':'width:13em;'},
  29. "exch_categ" :{'FieldStyle':'width:18em;'},
  30. "description":{'FieldStyle':'width:85%;'}
  31. }
  32. %>
  33. ${helper.DisplayForm(form, DicFormat)}
  34. NB: Vous devez faire une proposition différente pour chaque nuit que vous proposez.
  35. <br>
  36. <a class="btn btn-mini btn-info" role="button" href="javascript:DoGetLieu('/${CurrentYear}/modal/Place/0');">
  37. <i class="icon-plus-sign icon-white"></i> Indiquer l'adresse proposée.
  38. </a>
  39. </%def> \
  40. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  41. ## Demande d'hébergement
  42. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  43. <%def name="Heberg_Ask(form)"> \
  44. <% ## PlaceHolder, ContainerStyle, FieldStyle
  45. DicFormat = {
  46. "description":{'FieldStyle':'width:85%;'}
  47. }
  48. %>
  49. ${helper.DisplayForm(form, DicFormat)}
  50. NB: Vous devez faire une demande différente pour chaque nuit d'hébergement demandée.
  51. </%def> \