event_list.tpl 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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("m/d/Y h:i:s") }}
  22. </td>
  23. <td style="width:20%">
  24. {% if event.allDay %}
  25. {{ 'AllDay' | get_lang }}
  26. {% else %}
  27. {{ event.end |date("m/d/Y h:i:s") }}
  28. {% endif %}
  29. </td>
  30. <td style="width:50%">
  31. {{ event.title }}
  32. <p>{{ event.description}}</p>
  33. </td>
  34. {% if is_allowed_to_edit %}
  35. <td>
  36. {% if event.visibility == 1 %}
  37. <a class="btn" href="{{ url }}&action=change_visibility&visibility=0&id={{ event.real_id }}">
  38. <img title="{{ 'Invisible' }}" src="{{'visible.png'|icon(32)}} ">
  39. </a>
  40. {% else %}
  41. <a class="btn" href="{{ url }}&action=change_visibility&visibility=1&id={{ event.real_id }}">
  42. <img title="{{ 'Visible' }}" src="{{'invisible.png'|icon(32)}} ">
  43. </a>
  44. {% endif %}
  45. </td>
  46. {% endif %}
  47. </tr>
  48. {% endfor %}
  49. </table>