event_list.tpl 2.2 KB

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