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.

Dialog_Matos.mako 2.3 KiB

il y a 9 ans
il y a 9 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <%namespace name="helper" file="jm2l:templates/helpers.mako"/>
  2. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  3. ## Détail de l'échange matériel
  4. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  5. <%def name="ShowM(Exch)"> \
  6. ${helper.show_exchange(Exch, Exch.asker, Exch.provider)}
  7. <dl>
  8. <dt>Catégorie</dt>
  9. <dd>${Exch.Category.exch_subtype}</dd>
  10. <dt>Quand </dt>
  11. <dd>de ${Exch.start_time.strftime('%A %d %b %Y')} vers ${Exch.start_time.strftime('%Hh%M')}
  12. à ${Exch.end_time.strftime('%A %d %b %Y')} vers ${Exch.end_time.strftime('%Hh%M')}
  13. </dd>
  14. <dt>Détails </dt>
  15. <dd>${Exch.description}</dd>
  16. </dl>
  17. </%def> \
  18. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  19. ## Proposition de matériel
  20. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  21. <%def name="Matos_Proposal(form)"> \
  22. <% ## PlaceHolder, ContainerStyle, FieldStyle
  23. DicFormat = {
  24. "Day_start" :{'ContainerStyle':'float:left;', 'FieldStyle':'width:8em;'},
  25. "Hour_start" :{'ContainerStyle':'float:left;width:8em;', 'PlaceHolder':'10:00', 'FieldStyle':'width:4em;margin: 0 2px;'},
  26. "Day_end" :{'ContainerStyle':'float:left;', 'FieldStyle':'width:8em;'},
  27. "Hour_end" :{'PlaceHolder':'19:00', 'FieldStyle':'width:4em;margin: 0 2px;'},
  28. "description":{'FieldStyle':'width:85%;'},
  29. "exch_categ":{'FieldStyle':'width:10em;'}
  30. }
  31. %>
  32. ${helper.DisplayForm(form, DicFormat)}
  33. </%def> \
  34. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  35. ## Demande de matériel
  36. ## -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  37. <%def name="Matos_Ask(form)"> \
  38. <% ## PlaceHolder, ContainerStyle, FieldStyle
  39. DicFormat = {
  40. "Day_start" :{'ContainerStyle':'float:left;', 'FieldStyle':'width:8em;'},
  41. "Hour_start" :{'ContainerStyle':'float:left;width:8em;', 'PlaceHolder':'10:00', 'FieldStyle':'width:4em;margin: 0 2px;'},
  42. "Day_end" :{'ContainerStyle':'float:left;', 'FieldStyle':'width:8em;'},
  43. "Hour_end" :{'PlaceHolder':'19:00', 'FieldStyle':'width:4em;margin: 0 2px;'},
  44. "description":{'FieldStyle':'width:85%;'},
  45. "exch_categ":{'FieldStyle':'width:10em;'}
  46. }
  47. %>
  48. ${helper.DisplayForm(form, DicFormat)}
  49. </%def> \