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.

55 lines
1.1 KiB

  1. ::use 'design.mtt'::
  2. <!--
  3. <style>
  4. .calDiv{
  5. width:14.28%;
  6. background:grey;
  7. padding:2px;
  8. height:50px;
  9. border:solid 1px black;
  10. display:inline-block;
  11. }
  12. </style>
  13. <div class="col-md-12">
  14. <div class="article">
  15. <h2>::_("Calendar")::</h2>
  16. <div class="calDiv"></div><div class="calDiv"></div><div class="calDiv"></div><div class="calDiv"></div><div class="calDiv"></div><div class="calDiv"></div><div class="calDiv"></div>
  17. </div>
  18. </div>
  19. -->
  20. <div class="col-md-12">
  21. <div class="article">
  22. <h2>Calendrier</h2>
  23. <div style="-webkit-column-count: 3;-moz-column-count: 3;column-count: 3;">
  24. ::foreach c calendar::
  25. ::if c.d.getTime() < now::
  26. ::set col="0.3"::
  27. ::else::
  28. ::set col="1"::
  29. ::end::
  30. <div style="opacity: ::col::;margin-bottom:8px;">
  31. ::hDate(c.d)::<br/>
  32. ::foreach e c.events::
  33. <div style="margin-left:16px;margin-right:16px;width:12px;height:8px;display:inline-block;background: ::intToHex(e.color,6)::;"></div><b> ::e.name:: </b><br/>
  34. ::end::
  35. </div>
  36. ::end::
  37. </div>
  38. </div>
  39. </div>
  40. ::end::