page_body.tpl 977 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {# Actions #}
  2. {% if actions != '' %}
  3. <div class="actions">
  4. {{ actions }}
  5. </div>
  6. {% endif %}
  7. {% if actions_menu != '' %}
  8. {{ knp_menu_render('actions_menu', { 'currentClass': 'active'}) }}
  9. {% endif %}
  10. {# Page header #}
  11. {% if header != '' %}
  12. <div class="page-header">
  13. <h1>{{ header }}</h1>
  14. </div>
  15. {% endif %}
  16. {# Check if security exists #}
  17. {% if app.security.token and is_granted('ROLE_PREVIOUS_ADMIN') %}
  18. <div class="alert">
  19. <a href="{{ path('index', {'_switch_user': '_exit'}) }}">{{ 'Exit impersonation' | trans }}</a>
  20. </div>
  21. {% endif %}
  22. {# Show messages #}
  23. {% if message != '' %}
  24. <section id="messages">
  25. {{ message}}
  26. </section>
  27. {% endif %}
  28. {% include app.template_style ~ "/layout/messages.tpl" %}
  29. {# Welcome to course block #}
  30. {% if welcome_to_course_block %}
  31. <section id="welcome_to_course">
  32. {% include app.template_style ~ "/layout/welcome_to_course.tpl" %}
  33. </section>
  34. {% endif %}