personal_data.html.twig 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {% extends '@ChamiloTheme/Layout/layout_one_col.html.twig' %}
  2. {% import '@ChamiloTheme/Macros/box.html.twig' as macro %}
  3. {% block content %}
  4. {% autoescape false %}
  5. <div class="row">
  6. <div class="col-md-3">
  7. <div class="social-network-menu">
  8. {% include '@ChamiloTheme/Social/user_block.html.twig' %}
  9. {{ social_menu_block }}
  10. </div>
  11. </div>
  12. <div class="col-md-9">
  13. {{ macro.panel('PersonalDataIntroductionTitle' | get_lang , 'PersonalDataIntroductionText' | get_lang) }}
  14. {{ display.collapse('', 'PersonalDataKeptOnYou' | get_lang, personal_data.data, false, 'false') }}
  15. {% if personal_data.responsible %}
  16. {{ macro.panel('PersonalDataResponsibleOrganizationTitle' | get_lang , personal_data.responsible ) }}
  17. {% endif %}
  18. {% if personal_data.treatment %}
  19. <div class="panel personal-data-treatment">
  20. <div class="panel-title">{{ 'PersonalDataTreatmentTitle' | get_lang }}</div>
  21. <div class="personal-data-treatment-description">
  22. {% for treatment in personal_data.treatment %}
  23. {% if treatment.content %}
  24. <div class="sub-section">
  25. <div class="panel-sub-title">{{ treatment.title }}</div>
  26. <div class="panel-body">{{ treatment.content }}</div>
  27. </div>
  28. {% endif %}
  29. {% endfor %}
  30. </div>
  31. </div>
  32. {% endif %}
  33. {% if personal_data.officer_name %}
  34. <div class="panel personal-data-responsible">
  35. <div class="panel-title">{{ 'PersonalDataOfficerName' | get_lang }}</div>
  36. <div class="personal-data-responsible-description">
  37. <a href="mailto:{{ personal_data.officer_email }}">{{ personal_data.officer_name }}</a>
  38. </div>
  39. <div class="panel-title">{{ 'PersonalDataOfficerRole' | get_lang }}</div>
  40. <div class="personal-data-responsible-description">
  41. {{ personal_data.officer_role }}
  42. </div>
  43. </div>
  44. {% endif %}
  45. {% if term_link %}
  46. {{ macro.panel('TermsAndConditions'|get_lang, term_link ) }}
  47. {% endif %}
  48. {{ macro.panel('PersonalDataPermissionsYouGaveUs' | get_lang, permission) }}
  49. </div>
  50. </div>
  51. {% endautoescape %}
  52. {% endblock %}