@openeuropa/bcl-twig-templates 0.4298.202511051800 → 0.4360.202601141610

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/package.json +67 -67
  2. package/templates/bcl-accordion/accordion.html.twig +42 -46
  3. package/templates/bcl-alert/alert.html.twig +18 -21
  4. package/templates/bcl-badge/badge.html.twig +11 -15
  5. package/templates/bcl-banner/banner.html.twig +34 -37
  6. package/templates/bcl-base-templates/content-type.html.twig +63 -67
  7. package/templates/bcl-base-templates/listing-page.html.twig +31 -31
  8. package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
  9. package/templates/bcl-blockquote/blockquote.html.twig +17 -20
  10. package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -28
  11. package/templates/bcl-button/button.html.twig +24 -27
  12. package/templates/bcl-button-group/button-group.html.twig +25 -29
  13. package/templates/bcl-card/card.html.twig +98 -101
  14. package/templates/bcl-card-layout/card-layout.html.twig +34 -37
  15. package/templates/bcl-carousel/carousel.html.twig +64 -67
  16. package/templates/bcl-contact-form/contact-form.html.twig +1 -1
  17. package/templates/bcl-content-banner/content-banner.html.twig +37 -40
  18. package/templates/bcl-date-block/date-block.html.twig +26 -29
  19. package/templates/bcl-description-list/description-list-details.html.twig +6 -9
  20. package/templates/bcl-description-list/description-list-title.html.twig +11 -14
  21. package/templates/bcl-description-list/description-list.html.twig +44 -48
  22. package/templates/bcl-dropdown/dropdown.html.twig +48 -52
  23. package/templates/bcl-event/event.html.twig +7 -7
  24. package/templates/bcl-fact-figures/fact-figures.html.twig +34 -37
  25. package/templates/bcl-featured-media/featured-media.html.twig +42 -46
  26. package/templates/bcl-file/file-translations.html.twig +29 -32
  27. package/templates/bcl-file/file.html.twig +47 -50
  28. package/templates/bcl-footer/footer.html.twig +31 -34
  29. package/templates/bcl-form/form.html.twig +70 -73
  30. package/templates/bcl-form-input/form-input.html.twig +57 -61
  31. package/templates/bcl-gallery/gallery-item.html.twig +20 -23
  32. package/templates/bcl-gallery/gallery.html.twig +62 -66
  33. package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
  34. package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
  35. package/templates/bcl-group/group-landing.html.twig +69 -69
  36. package/templates/bcl-group/group.html.twig +19 -19
  37. package/templates/bcl-header/header.html.twig +71 -82
  38. package/templates/bcl-heading/heading.html.twig +13 -17
  39. package/templates/bcl-icon/icon.html.twig +10 -13
  40. package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -23
  41. package/templates/bcl-landing-page/landing-page.html.twig +33 -33
  42. package/templates/bcl-language-list/language-list-grid.html.twig +25 -28
  43. package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
  44. package/templates/bcl-language-list/language-list.html.twig +33 -37
  45. package/templates/bcl-language-switcher/language-switcher.html.twig +12 -15
  46. package/templates/bcl-link/link.html.twig +24 -27
  47. package/templates/bcl-links-block/links-block.html.twig +30 -34
  48. package/templates/bcl-list-group/list-group.html.twig +43 -47
  49. package/templates/bcl-listing/listing.html.twig +88 -91
  50. package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -21
  51. package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +28 -26
  52. package/templates/bcl-mega-menu/mega-menu.html.twig +37 -38
  53. package/templates/bcl-modal/modal.html.twig +21 -23
  54. package/templates/bcl-navbar/navbar.html.twig +35 -38
  55. package/templates/bcl-navigation/navigation.html.twig +105 -110
  56. package/templates/bcl-offcanvas/offcanvas.html.twig +33 -36
  57. package/templates/bcl-page/page.html.twig +27 -27
  58. package/templates/bcl-pagination/pagination-item.html.twig +22 -26
  59. package/templates/bcl-pagination/pagination.html.twig +59 -62
  60. package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -35
  61. package/templates/bcl-pagination-v2/pagination.html.twig +79 -82
  62. package/templates/bcl-person/person.html.twig +12 -12
  63. package/templates/bcl-placeholder/placeholder.html.twig +14 -18
  64. package/templates/bcl-progress/progress.html.twig +16 -20
  65. package/templates/bcl-project/project-lists.html.twig +25 -29
  66. package/templates/bcl-project/project.html.twig +35 -35
  67. package/templates/bcl-project-status/project-contributions.html.twig +25 -28
  68. package/templates/bcl-project-status/project-status.html.twig +32 -37
  69. package/templates/bcl-recent-activities/recent-activities.html.twig +13 -16
  70. package/templates/bcl-search/search.html.twig +12 -12
  71. package/templates/bcl-search-form/search-form.html.twig +21 -24
  72. package/templates/bcl-select/select.html.twig +52 -56
  73. package/templates/bcl-spinner/spinner.html.twig +10 -13
  74. package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
  75. package/templates/bcl-subscription/subscription.html.twig +3 -3
  76. package/templates/bcl-subscription-block/subscription-block.html.twig +14 -17
  77. package/templates/bcl-table/table.html.twig +61 -65
  78. package/templates/bcl-textarea/textarea.html.twig +44 -47
  79. package/templates/bcl-timeline/timeline-item.html.twig +12 -15
  80. package/templates/bcl-timeline/timeline.html.twig +42 -45
  81. package/templates/bcl-toasts/toasts.html.twig +56 -60
  82. package/templates/bcl-user/user-compact.html.twig +24 -27
  83. package/templates/bcl-user/user-terms.html.twig +6 -6
  84. package/templates/bcl-user/user.html.twig +117 -117
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {#
4
2
  Parameters:
5
3
  - with_wrapper (boolean) (default: false)
@@ -26,107 +24,105 @@
26
24
  - attributes (drupal attrs)
27
25
  #}
28
26
 
29
- {% set _with_wrapper = with_wrapper ?? false %}
27
+ {%- set _with_wrapper = with_wrapper ?? false %}
30
28
  {% set _wrapper_classes = wrapper_classes|default('') %}
31
29
  {% set _wrapper_aria_live = wrapper_aria_live|default('') %}
32
30
  {% set _with_container = with_container ?? false %}
33
31
  {% set _toasts = toasts|default([]) %}
34
32
 
35
- {% set _container_classes = 'toast-container' %}
33
+ {%- set _container_classes = 'toast-container' %}
36
34
 
37
- {% if container_classes %}
38
- {% set _container_classes = _container_classes ~ ' ' ~ container_classes %}
35
+ {%- if container_classes %}
36
+ {%- set _container_classes = _container_classes ~ ' ' ~ container_classes %}
39
37
  {% endif %}
40
38
 
41
- {% if attributes is empty %}
42
- {% set attributes = create_attribute() %}
39
+ {%- if attributes is empty %}
40
+ {%- set attributes = create_attribute() %}
43
41
  {% endif %}
44
42
 
45
- {# wrapper #}
43
+ {#- wrapper #}
46
44
  {% if _with_wrapper %}
47
- {% set attributes = attributes.setAttribute('aria-atomic', "true") %}
48
- {% if _wrapper_aria_live %}
49
- {% set attributes = attributes.setAttribute('aria-live', _wrapper_aria_live) %}
50
- {% endif %}
51
- {% if _wrapper_classes %}
52
- {% set attributes = attributes.addClass(_wrapper_classes|split(' ')) %}
53
- {% endif %}
45
+ {%- set attributes = attributes.setAttribute('aria-atomic', "true") %}
46
+ {%- if _wrapper_aria_live %}
47
+ {%- set attributes = attributes.setAttribute('aria-live', _wrapper_aria_live) %}
48
+ {%- endif %}
49
+ {%- if _wrapper_classes %}
50
+ {%- set attributes = attributes.addClass(_wrapper_classes|split(' ')) %}
51
+ {%- endif -%}
54
52
 
55
53
  <div {{ attributes }}>
56
54
 
57
- {% endif %}
55
+ {%- endif %}
58
56
  {# container #}
59
- {% if _with_container %}
57
+ {% if _with_container -%}
60
58
  <div class="{{ _container_classes }}">
61
- {% endif %}
59
+ {%- endif %}
62
60
  {# toasts #}
63
61
  {% if _toasts is not empty %}
64
- {% for _toast in _toasts %}
65
- {% set _classes = ['toast'] %}
66
- {% set _body = _toast.body|default('') %}
67
- {% set _role = _toast.role|default('') %}
68
- {% set _with_close = _toast.with_close ?? true %}
69
- {% set _aria_live = _toast.aria_live|default('') %}
70
- {% set _autohide = _toast.autohide ?? true %}
71
- {% set _with_body_wrapper = _toast.with_body_wrapper ?? false %}
72
- {% set _body_wrapper_classes = _toast.body_wrapper_classes|default('') %}
73
- {% set _toast_attributes = _toast.attributes ?: create_attribute() %}
74
- {% set _body_attributes = _toast.body_attributes ?: create_attribute() %}
75
- {% set _header_attributes = _toast.header_attributes ?: create_attribute() %}
76
- {% set _button_attributes = _toast.button_attributes ?: create_attribute() %}
77
- {% set _toast_attributes = _toast_attributes.addClass(_classes).setAttribute('aria-atomic', 'true') %}
78
- {% if _aria_live is not empty %}
79
- {% set _toast_attributes = _toast_attributes.setAttribute('aria-live', _aria_live) %}
80
- {% endif %}
81
- {% if _role is not empty %}
82
- {% set _toast_attributes = _toast_attributes.setAttribute('role', _role) %}
83
- {% endif %}
84
- {% if not _autohide %}
85
- {% set _toast_attributes = _toast_attributes.setAttribute('data-bs-autohide', 'false') %}
86
- {% endif %}
62
+ {%- for _toast in _toasts %}
63
+ {%- set _classes = ['toast'] %}
64
+ {%- set _body = _toast.body|default('') %}
65
+ {%- set _role = _toast.role|default('') %}
66
+ {%- set _with_close = _toast.with_close ?? true %}
67
+ {%- set _aria_live = _toast.aria_live|default('') %}
68
+ {%- set _autohide = _toast.autohide ?? true %}
69
+ {%- set _with_body_wrapper = _toast.with_body_wrapper ?? false %}
70
+ {%- set _body_wrapper_classes = _toast.body_wrapper_classes|default('') %}
71
+ {%- set _toast_attributes = _toast.attributes ?: create_attribute() %}
72
+ {%- set _body_attributes = _toast.body_attributes ?: create_attribute() %}
73
+ {%- set _header_attributes = _toast.header_attributes ?: create_attribute() %}
74
+ {%- set _button_attributes = _toast.button_attributes ?: create_attribute() %}
75
+ {%- set _toast_attributes = _toast_attributes.addClass(_classes).setAttribute('aria-atomic', 'true') %}
76
+ {%- if _aria_live is not empty %}
77
+ {%- set _toast_attributes = _toast_attributes.setAttribute('aria-live', _aria_live) %}
78
+ {%- endif %}
79
+ {%- if _role is not empty %}
80
+ {%- set _toast_attributes = _toast_attributes.setAttribute('role', _role) %}
81
+ {%- endif %}
82
+ {%- if not _autohide %}
83
+ {%- set _toast_attributes = _toast_attributes.setAttribute('data-bs-autohide', 'false') %}
84
+ {%- endif -%}
87
85
  <div
88
86
  {{ _toast_attributes }}
89
87
  >
90
- {% if _with_close or
88
+ {%- if _with_close or
91
89
  (_toast.header is defined and _toast.header is not empty)
92
- %}
90
+ -%}
93
91
  <div{{ _header_attributes.addClass(['toast-header']) }}>
94
92
  {{- _toast.header|default('') -}}
95
93
  {% if _with_close %}
96
- {% if not _button_attributes.hasAttribute('aria-label') %}
97
- {% set _button_attributes = _button_attributes.setAttribute('aria-label', 'Close') %}
98
- {% endif %}
94
+ {%- if not _button_attributes.hasAttribute('aria-label') %}
95
+ {%- set _button_attributes = _button_attributes.setAttribute('aria-label', 'Close') %}
96
+ {%- endif %}
99
97
  {%- include '@oe-bcl/bcl-button/button.html.twig' with {
100
98
  attributes: _button_attributes
101
99
  .addClass(['btn-close'])
102
100
  .setAttribute('data-bs-dismiss', 'toast'),
103
101
  clean_class: true
104
102
  } only -%}
105
- {% endif %}
103
+ {% endif -%}
106
104
  </div>
107
- {% endif %}
108
- {% if _with_body_wrapper %}
105
+ {%- endif %}
106
+ {%- if _with_body_wrapper -%}
109
107
  <div
110
108
  {% if _body_wrapper_classes %}
111
109
  class="{{ _body_wrapper_classes }}"
112
110
  {% endif %}
113
111
  >
114
- {% endif %}
112
+ {%- endif -%}
115
113
  <div{{ _body_attributes.addClass(['toast-body']) }}>
116
114
  {{- _body -}}
117
115
  </div>
118
- {% if _with_body_wrapper %}
116
+ {%- if _with_body_wrapper -%}
119
117
  </div>
120
- {% endif %}
118
+ {%- endif %}
121
119
  {{- _toast.custom_content|default('') -}}
122
120
  </div>
123
- {% endfor %}
121
+ {%- endfor %}
124
122
  {% endif %}
125
- {% if _with_container %}
123
+ {% if _with_container -%}
126
124
  </div>
127
- {% endif %}
128
- {% if _with_wrapper %}
125
+ {%- endif %}
126
+ {% if _with_wrapper -%}
129
127
  </div>
130
- {% endif %}
131
-
132
- {% endapply %}
128
+ {%- endif -%}
@@ -1,5 +1,3 @@
1
- {% apply spaceless %}
2
-
3
1
  {# Parameters:
4
2
  - picture (object) (default: {})
5
3
  format: {
@@ -15,50 +13,49 @@
15
13
  - infos (string[]) (default: [])
16
14
  #}
17
15
 
18
- {% set _picture = picture|default({}) %}
16
+ {%- set _picture = picture|default({}) %}
19
17
  {% set _name = name|default({}) %}
20
18
  {% set _infos = infos|default([]) %}
21
19
 
22
- {% set _picture_classes = 'rounded-pill' %}
20
+ {%- set _picture_classes = 'rounded-pill' %}
23
21
  {% set _classes = ['bcl-user-compact', 'd-flex', 'mb-3'] %}
24
22
 
25
- {% if attributes is empty %}
26
- {% set attributes = create_attribute() %}
23
+ {%- if attributes is empty %}
24
+ {%- set attributes = create_attribute() %}
27
25
  {% endif %}
28
26
 
29
- {% set attributes = attributes.addClass(_classes) %}
27
+ {%- set attributes = attributes.addClass(_classes) %}
30
28
 
31
- {% if _picture is not empty and _picture.classes is not empty %}
32
- {% set _picture_classes = _picture_classes ~ ' ' ~ _picture.classes %}
33
- {% endif %}
29
+ {%- if _picture is not empty and _picture.classes is not empty %}
30
+ {%- set _picture_classes = _picture_classes ~ ' ' ~ _picture.classes %}
31
+ {% endif -%}
34
32
 
35
33
  <div
36
34
  {{ attributes }}
37
- >
38
- <div class="flex-shrink-0">
35
+ >{# -#}
36
+ <div class="flex-shrink-0">{# -#}
39
37
  <img
40
38
  class="{{ _picture_classes }}"
41
39
  src="{{ _picture.path }}"
42
40
  alt="{{ _picture.alt }}"
43
- >
44
- </div>
41
+ >{# -#}
42
+ </div>{# -#}
45
43
  <div class="flex-grow-1 ms-3">
46
- {% if _name.link is not empty %}
44
+ {%- if _name.link is not empty -%}
47
45
  <a href="{{ _name.link }}" class="fs-5 standalone mb-0">{{ _name.text }}</a>
48
- {% else %}
46
+ {%- else -%}
49
47
  <p class="fs-5 mb-0 text-primary">{{ _name.text }}</p>
50
- {% endif %}
48
+ {%- endif %}
51
49
 
52
- {% if _infos is not empty %}
50
+ {%- if _infos is not empty -%}
53
51
  <div class="d-flex flex-wrap">
54
- {% for _info in _infos %}
55
- {% if _info is not empty %}
56
- <span class="text-muted text-nowrap{{ loop.last ? '' :' me-4-5'}}">{{ _info }}</span>
57
- {% endif %}
58
- {% endfor %}
52
+ {%- for _info in _infos %}
53
+ {%- if _info is not empty -%}
54
+ <span class="text-muted text-nowrap{{ loop.last ? '' :' me-4-5' }}">{{ _info }}</span>
55
+ {%- endif %}
56
+ {%- endfor -%}
59
57
  </div>
60
- {% endif %}
61
- </div>
58
+ {%- endif -%}
59
+ </div>{# -#}
62
60
  </div>
63
-
64
- {% endapply %}
61
+ {#--#}
@@ -1,11 +1,11 @@
1
1
  {% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
2
2
 
3
3
  {%- block content %}
4
- {{ get_dummy_text(4, true) }}
5
- <ul class="mb-4-5">
6
- <li>{{ get_dummy_text() }}</li>
7
- <li>{{ get_dummy_text() }}</li>
8
- <li>{{ get_dummy_text() }}</li>
4
+ {{- get_dummy_text(4, true) -}}
5
+ <ul class="mb-4-5">{# -#}
6
+ <li>{{ get_dummy_text() }}</li>{# -#}
7
+ <li>{{ get_dummy_text() }}</li>{# -#}
8
+ <li>{{ get_dummy_text() }}</li>{# -#}
9
9
  </ul>
10
- {% include '@oe-bcl/bcl-form/form.html.twig' with terms_form only %}
10
+ {%- include '@oe-bcl/bcl-form/form.html.twig' with terms_form only %}
11
11
  {%- endblock -%}
@@ -1,137 +1,137 @@
1
1
  {% extends "@oe-bcl/bcl-base-templates/content-type.html.twig" -%}
2
2
 
3
3
  {%- block content %}
4
- {% include "@oe-bcl/bcl-navigation/navigation.html.twig" with navigation only %}
5
- <div class="tab-content">
4
+ {%- include "@oe-bcl/bcl-navigation/navigation.html.twig" with navigation only -%}
5
+ <div class="tab-content">{# -#}
6
6
  <div class="tab-pane fade show active" id="view" role="tabpanel" aria-labelledby="view-tab">
7
- {% include '@oe-bcl/bcl-content-banner/content-banner.html.twig' with view.banner only %}
7
+ {%- include '@oe-bcl/bcl-content-banner/content-banner.html.twig' with view.banner only -%}
8
8
  <div class="mt-3 mt-md-4-75 pt-4-75 mb-3">
9
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
9
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
10
10
  title: 'Personal information',
11
11
  title_tag: 'h2',
12
12
  attributes: create_attribute().addClass(['mb-4']),
13
- } only %}
14
- <div class="row">
15
- <div class="col-12 col-md-6">
16
- <div class="row">
17
- <div class="col-12 col-md-4">
18
- <p class="mb-0">Gender:</p>
19
- </div>
20
- <div class="col-12 col-md-8">
21
- <p>Male</p>
22
- </div>
23
- </div>
24
- <div class="row">
25
- <div class="col-12 col-md-4">
26
- <p class="mb-0">Nationality:</p>
27
- </div>
28
- <div class="col-12 col-md-8">
29
- <p>German</p>
30
- </div>
31
- </div>
32
- <div class="row">
33
- <div class="col-12 col-md-4">
34
- <p class="mb-0">Date of birth:</p>
35
- </div>
36
- <div class="col-12 col-md-8">
37
- <p>22/01/1972</p>
38
- </div>
39
- </div>
40
- </div>
41
- <div class="col-12 col-md-6">
42
- <div class="row">
43
- <div class="col-12 col-md-4">
44
- <p class="mb-0">Country:</p>
45
- </div>
46
- <div class="col-12 col-md-8">
47
- <p>Germany</p>
48
- </div>
49
- </div>
50
- <div class="row">
51
- <div class="col-12 col-md-4">
52
- <p class="mb-0">City:</p>
53
- </div>
54
- <div class="col-12 col-md-8">
55
- <p>Düsseldorf</p>
56
- </div>
57
- </div>
58
- </div>
59
- </div>
60
- </div>
13
+ } only -%}
14
+ <div class="row">{# -#}
15
+ <div class="col-12 col-md-6">{# -#}
16
+ <div class="row">{# -#}
17
+ <div class="col-12 col-md-4">{# -#}
18
+ <p class="mb-0">Gender:</p>{# -#}
19
+ </div>{# -#}
20
+ <div class="col-12 col-md-8">{# -#}
21
+ <p>Male</p>{# -#}
22
+ </div>{# -#}
23
+ </div>{# -#}
24
+ <div class="row">{# -#}
25
+ <div class="col-12 col-md-4">{# -#}
26
+ <p class="mb-0">Nationality:</p>{# -#}
27
+ </div>{# -#}
28
+ <div class="col-12 col-md-8">{# -#}
29
+ <p>German</p>{# -#}
30
+ </div>{# -#}
31
+ </div>{# -#}
32
+ <div class="row">{# -#}
33
+ <div class="col-12 col-md-4">{# -#}
34
+ <p class="mb-0">Date of birth:</p>{# -#}
35
+ </div>{# -#}
36
+ <div class="col-12 col-md-8">{# -#}
37
+ <p>22/01/1972</p>{# -#}
38
+ </div>{# -#}
39
+ </div>{# -#}
40
+ </div>{# -#}
41
+ <div class="col-12 col-md-6">{# -#}
42
+ <div class="row">{# -#}
43
+ <div class="col-12 col-md-4">{# -#}
44
+ <p class="mb-0">Country:</p>{# -#}
45
+ </div>{# -#}
46
+ <div class="col-12 col-md-8">{# -#}
47
+ <p>Germany</p>{# -#}
48
+ </div>{# -#}
49
+ </div>{# -#}
50
+ <div class="row">{# -#}
51
+ <div class="col-12 col-md-4">{# -#}
52
+ <p class="mb-0">City:</p>{# -#}
53
+ </div>{# -#}
54
+ <div class="col-12 col-md-8">{# -#}
55
+ <p>Düsseldorf</p>{# -#}
56
+ </div>{# -#}
57
+ </div>{# -#}
58
+ </div>{# -#}
59
+ </div>{# -#}
60
+ </div>{# -#}
61
61
  <div class="my-3">
62
- {% include '@oe-bcl/bcl-heading/heading.html.twig' with {
62
+ {%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
63
63
  title: 'Professional information',
64
64
  title_tag: 'h2',
65
65
  attributes: create_attribute().addClass(['mb-4']),
66
- } only %}
67
- <div class="row">
68
- <div class="col-12 col-md-6">
69
- <div class="row">
70
- <div class="col-12 col-md-4">
71
- <p class="mb-0">Organisation:</p>
72
- </div>
73
- <div class="col-12 col-md-8">
74
- <p>DG Test</p>
75
- </div>
76
- </div>
77
- <div class="row">
78
- <div class="col-12 col-md-4">
79
- <p class="mb-0">Position:</p>
80
- </div>
81
- <div class="col-12 col-md-8">
82
- <p>Director</p>
83
- </div>
84
- </div>
85
- </div>
86
- <div class="col-12 col-md-6">
87
- <div class="row">
88
- <div class="col-12 col-md-4">
89
- <p class="mb-0">Working languages:</p>
90
- </div>
91
- <div class="col-12 col-md-8">
92
- <p>English, German</p>
93
- </div>
94
- </div>
95
- </div>
96
- </div>
97
- </div>
98
- </div>
99
- <div class="tab-pane fade" id="edit" role="tabpanel" aria-labelledby="edit-tab">
100
- <h1 class="my-4-5">Edit my profile</h1>
101
- <h2 class="mb-4-5">Profile image</h2>
102
- <div class="row">
103
- <div class="bcl-card-start-col bcl-size-large mx-auto ms-md-2-5">
104
- <img src="https://picsum.photos/seed/1002/400/400" class="img-fluid" alt="profile-image">
105
- </div>
106
- <div class="col-12 col-md align-self-center">
66
+ } only -%}
67
+ <div class="row">{# -#}
68
+ <div class="col-12 col-md-6">{# -#}
69
+ <div class="row">{# -#}
70
+ <div class="col-12 col-md-4">{# -#}
71
+ <p class="mb-0">Organisation:</p>{# -#}
72
+ </div>{# -#}
73
+ <div class="col-12 col-md-8">{# -#}
74
+ <p>DG Test</p>{# -#}
75
+ </div>{# -#}
76
+ </div>{# -#}
77
+ <div class="row">{# -#}
78
+ <div class="col-12 col-md-4">{# -#}
79
+ <p class="mb-0">Position:</p>{# -#}
80
+ </div>{# -#}
81
+ <div class="col-12 col-md-8">{# -#}
82
+ <p>Director</p>{# -#}
83
+ </div>{# -#}
84
+ </div>{# -#}
85
+ </div>{# -#}
86
+ <div class="col-12 col-md-6">{# -#}
87
+ <div class="row">{# -#}
88
+ <div class="col-12 col-md-4">{# -#}
89
+ <p class="mb-0">Working languages:</p>{# -#}
90
+ </div>{# -#}
91
+ <div class="col-12 col-md-8">{# -#}
92
+ <p>English, German</p>{# -#}
93
+ </div>{# -#}
94
+ </div>{# -#}
95
+ </div>{# -#}
96
+ </div>{# -#}
97
+ </div>{# -#}
98
+ </div>{# -#}
99
+ <div class="tab-pane fade" id="edit" role="tabpanel" aria-labelledby="edit-tab">{# -#}
100
+ <h1 class="my-4-5">Edit my profile</h1>{# -#}
101
+ <h2 class="mb-4-5">Profile image</h2>{# -#}
102
+ <div class="row">{# -#}
103
+ <div class="bcl-card-start-col bcl-size-large mx-auto ms-md-2-5">{# -#}
104
+ <img src="https://picsum.photos/seed/1002/400/400" class="img-fluid" alt="profile-image">{# -#}
105
+ </div>{# -#}
106
+ <div class="col-12 col-md align-self-center">{# -#}
107
107
  <div class="mt-3 text-center text-md-start">
108
- {% include '@oe-bcl/bcl-form-input/form-input.html.twig' with edit.image_upload_input only %}
108
+ {%- include '@oe-bcl/bcl-form-input/form-input.html.twig' with edit.image_upload_input only -%}
109
109
  <div class="d-md-inline-block">
110
- {% include '@oe-bcl/bcl-button/button.html.twig' with edit.remove_image_button only %}
111
- </div>
112
- </div>
113
- </div>
114
- </div>
115
- <div class="row">
110
+ {%- include '@oe-bcl/bcl-button/button.html.twig' with edit.remove_image_button only -%}
111
+ </div>{# -#}
112
+ </div>{# -#}
113
+ </div>{# -#}
114
+ </div>{# -#}
115
+ <div class="row">{# -#}
116
116
  <div class="col-12">
117
- {% include '@oe-bcl/bcl-form/form.html.twig' with edit.profile_information only %}
118
- </div>
119
- </div>
120
- </div>
121
- <div class="tab-pane fade" id="privacy" role="tabpanel" aria-labelledby="privacy-tab">
122
- <h1 class="my-4-5">Privacy settings</h1>
117
+ {%- include '@oe-bcl/bcl-form/form.html.twig' with edit.profile_information only -%}
118
+ </div>{# -#}
119
+ </div>{# -#}
120
+ </div>{# -#}
121
+ <div class="tab-pane fade" id="privacy" role="tabpanel" aria-labelledby="privacy-tab">{# -#}
122
+ <h1 class="my-4-5">Privacy settings</h1>{# -#}
123
123
  <p>Who can consult my data</p>
124
- {% include '@oe-bcl/bcl-form/form.html.twig' with privacy.settings only %}
125
- </div>
126
- <div class="tab-pane fade" id="visibility" role="tabpanel" aria-labelledby="visibility-tab">
127
- <h1 class="my-4-5">Visibility settings</h1>
124
+ {%- include '@oe-bcl/bcl-form/form.html.twig' with privacy.settings only -%}
125
+ </div>{# -#}
126
+ <div class="tab-pane fade" id="visibility" role="tabpanel" aria-labelledby="visibility-tab">{# -#}
127
+ <h1 class="my-4-5">Visibility settings</h1>{# -#}
128
128
  <p class="mb-3">Select what information should be displayed to your profile.</p>
129
- {% include '@oe-bcl/bcl-form/form.html.twig' with privacy.public_profile_content only %}
130
- </div>
131
- <div class="tab-pane fade" id="cancel" role="tabpanel" aria-labelledby="cancel-tab">
132
- <h1 class="my-4-5">Are you sure you want to cancel your account?</h1>
129
+ {%- include '@oe-bcl/bcl-form/form.html.twig' with privacy.public_profile_content only -%}
130
+ </div>{# -#}
131
+ <div class="tab-pane fade" id="cancel" role="tabpanel" aria-labelledby="cancel-tab">{# -#}
132
+ <h1 class="my-4-5">Are you sure you want to cancel your account?</h1>{# -#}
133
133
  <p class="mb-3">When cancelling your account</p>
134
- {% include '@oe-bcl/bcl-form/form.html.twig' with cancel.form only %}
135
- </div>
134
+ {%- include '@oe-bcl/bcl-form/form.html.twig' with cancel.form only -%}
135
+ </div>{# -#}
136
136
  </div>
137
137
  {%- endblock -%}