event_list.html.twig 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {% autoescape false %}
  2. {{ agenda_actions }}
  3. <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
  4. {% for event in agenda_events %}
  5. <div class="panel panel-default">
  6. <div class="panel-heading" role="tab" id="heading-{{ event.id }}">
  7. {% if is_allowed_to_edit and show_action %}
  8. <div class="float-right">
  9. {% if event.visibility == 1 %}
  10. <a class="btn btn-default btn-xs"
  11. href="{% if url %}{{ url }}{% else %}{{ event.url }}{% endif %}&action=change_visibility&visibility=0&id={{ event.real_id }}&type={{ event.type }}">
  12. <img title="{{ 'Invisible' }}" src="{{ 'visible.png'|icon(22) }}">
  13. </a>
  14. {% else %}
  15. {% if event.type == 'course' or event.type == 'session' %}
  16. <a class="btn btn-default btn-xs"
  17. href="{% if url %}{{ url }}{% else %}{{ event.url }}{% endif %}&action=change_visibility&visibility=1&id={{ event.real_id }}&type={{ event.type }}">
  18. <img title="{{ 'Visible' }}" src="{{ 'invisible.png'|icon(22) }}">
  19. </a>
  20. {% endif %}
  21. {% endif %}
  22. </div>
  23. {% endif %}
  24. <h4 class="panel-title">
  25. <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
  26. href="#collapse-{{ event.id }}" aria-expanded="false" aria-controls="collapse-{{ event.id }}">
  27. {{ event.title }}
  28. <br>
  29. <small>
  30. {{ event.start_date_localtime }}
  31. &dash;
  32. {% if event.allDay %}
  33. {{ 'AllDay' | get_lang }}
  34. {% else %}
  35. {{ event.end_date_localtime }}
  36. {% endif %}
  37. </small>
  38. </a>
  39. </h4>
  40. </div>
  41. <div id="collapse-{{ event.id }}" class="panel-collapse collapse" role="tabpanel"
  42. aria-labelledby="heading-{{ event.id }}">
  43. <ul class="list-group">
  44. {% if event.description %}
  45. <li class="list-group-item">
  46. {{ event.description }}
  47. </li>
  48. {% endif %}
  49. {% if event.comment %}
  50. <li class="list-group-item">
  51. {{ event.comment }}
  52. </li>
  53. {% endif %}
  54. {% if event.attachment %}
  55. <li class="list-group-item">{{ event.attachment }}</li>
  56. {% endif %}
  57. </ul>
  58. </div>
  59. </div>
  60. {% endfor %}
  61. </div>
  62. {% endautoescape %}