event_list.tpl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <table class="data_table">
  2. <tr>
  3. <th>
  4. {{ 'StartDate'| get_lang }}
  5. </th>
  6. <th>
  7. {{ 'EndDate'| get_lang }}
  8. </th>
  9. <th>
  10. {{ 'Title' | get_lang }}
  11. </th>
  12. {% if is_allowed_to_edit %}
  13. <th>
  14. {{ 'Actions' | get_lang }}
  15. </th>
  16. {% endif %}
  17. </tr>
  18. {% for event in agenda_events %}
  19. <tr>
  20. <td style="width:20%">
  21. {{ event.start_date_localtime }}
  22. </td>
  23. <td style="width:20%">
  24. {% if event.allDay %}
  25. {{ 'AllDay' | get_lang }}
  26. {% else %}
  27. {{ event.end_date_localtime }}
  28. {% endif %}
  29. </td>
  30. <td style="width:50%">
  31. {{ event.title }}
  32. {% if event.description %}
  33. <p>{{ event.description}}</p>
  34. {% endif %}
  35. {% if event.comment %}
  36. <p>{{ event.comment}}</p>
  37. {% endif %}
  38. {{ event.attachment }}
  39. </td>
  40. {% if is_allowed_to_edit %}
  41. <td>
  42. {% if event.visibility == 1 %}
  43. <a class="btn btn-default" href="{% if url %}{{ url }}{% else %}{{ event.url }}{% endif %}&action=change_visibility&visibility=0&id={{ event.real_id }}">
  44. <img title="{{ 'Invisible' }}" src="{{'visible.png'|icon(32)}} " width="32" height="32">
  45. </a>
  46. {% else %}
  47. {% if event.type == 'course' or event.type == 'session' %}
  48. <a class="btn btn-default" href="{% if url %}{{ url }}{% else %}{{ event.url }}{% endif %}&action=change_visibility&visibility=1&id={{ event.real_id }}">
  49. <img title="{{ 'Visible' }}" src="{{'invisible.png'|icon(32)}} " width="32" height="32">
  50. </a>
  51. {% endif %}
  52. {% endif %}
  53. </td>
  54. {% endif %}
  55. </tr>
  56. {% endfor %}
  57. </table>