@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.
- package/package.json +67 -67
- package/templates/bcl-accordion/accordion.html.twig +42 -46
- package/templates/bcl-alert/alert.html.twig +18 -21
- package/templates/bcl-badge/badge.html.twig +11 -15
- package/templates/bcl-banner/banner.html.twig +34 -37
- package/templates/bcl-base-templates/content-type.html.twig +63 -67
- package/templates/bcl-base-templates/listing-page.html.twig +31 -31
- package/templates/bcl-base-templates/sidebar-search.html.twig +10 -10
- package/templates/bcl-blockquote/blockquote.html.twig +17 -20
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -28
- package/templates/bcl-button/button.html.twig +24 -27
- package/templates/bcl-button-group/button-group.html.twig +25 -29
- package/templates/bcl-card/card.html.twig +98 -101
- package/templates/bcl-card-layout/card-layout.html.twig +34 -37
- package/templates/bcl-carousel/carousel.html.twig +64 -67
- package/templates/bcl-contact-form/contact-form.html.twig +1 -1
- package/templates/bcl-content-banner/content-banner.html.twig +37 -40
- package/templates/bcl-date-block/date-block.html.twig +26 -29
- package/templates/bcl-description-list/description-list-details.html.twig +6 -9
- package/templates/bcl-description-list/description-list-title.html.twig +11 -14
- package/templates/bcl-description-list/description-list.html.twig +44 -48
- package/templates/bcl-dropdown/dropdown.html.twig +48 -52
- package/templates/bcl-event/event.html.twig +7 -7
- package/templates/bcl-fact-figures/fact-figures.html.twig +34 -37
- package/templates/bcl-featured-media/featured-media.html.twig +42 -46
- package/templates/bcl-file/file-translations.html.twig +29 -32
- package/templates/bcl-file/file.html.twig +47 -50
- package/templates/bcl-footer/footer.html.twig +31 -34
- package/templates/bcl-form/form.html.twig +70 -73
- package/templates/bcl-form-input/form-input.html.twig +57 -61
- package/templates/bcl-gallery/gallery-item.html.twig +20 -23
- package/templates/bcl-gallery/gallery.html.twig +62 -66
- package/templates/bcl-glossary/glossary-detail.html.twig +19 -19
- package/templates/bcl-glossary/glossary-listing.html.twig +6 -6
- package/templates/bcl-group/group-landing.html.twig +69 -69
- package/templates/bcl-group/group.html.twig +19 -19
- package/templates/bcl-header/header.html.twig +71 -82
- package/templates/bcl-heading/heading.html.twig +13 -17
- package/templates/bcl-icon/icon.html.twig +10 -13
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -23
- package/templates/bcl-landing-page/landing-page.html.twig +33 -33
- package/templates/bcl-language-list/language-list-grid.html.twig +25 -28
- package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
- package/templates/bcl-language-list/language-list.html.twig +33 -37
- package/templates/bcl-language-switcher/language-switcher.html.twig +12 -15
- package/templates/bcl-link/link.html.twig +24 -27
- package/templates/bcl-links-block/links-block.html.twig +30 -34
- package/templates/bcl-list-group/list-group.html.twig +43 -47
- package/templates/bcl-listing/listing.html.twig +88 -91
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -21
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +28 -26
- package/templates/bcl-mega-menu/mega-menu.html.twig +37 -38
- package/templates/bcl-modal/modal.html.twig +21 -23
- package/templates/bcl-navbar/navbar.html.twig +35 -38
- package/templates/bcl-navigation/navigation.html.twig +105 -110
- package/templates/bcl-offcanvas/offcanvas.html.twig +33 -36
- package/templates/bcl-page/page.html.twig +27 -27
- package/templates/bcl-pagination/pagination-item.html.twig +22 -26
- package/templates/bcl-pagination/pagination.html.twig +59 -62
- package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -35
- package/templates/bcl-pagination-v2/pagination.html.twig +79 -82
- package/templates/bcl-person/person.html.twig +12 -12
- package/templates/bcl-placeholder/placeholder.html.twig +14 -18
- package/templates/bcl-progress/progress.html.twig +16 -20
- package/templates/bcl-project/project-lists.html.twig +25 -29
- package/templates/bcl-project/project.html.twig +35 -35
- package/templates/bcl-project-status/project-contributions.html.twig +25 -28
- package/templates/bcl-project-status/project-status.html.twig +32 -37
- package/templates/bcl-recent-activities/recent-activities.html.twig +13 -16
- package/templates/bcl-search/search.html.twig +12 -12
- package/templates/bcl-search-form/search-form.html.twig +21 -24
- package/templates/bcl-select/select.html.twig +52 -56
- package/templates/bcl-spinner/spinner.html.twig +10 -13
- package/templates/bcl-subscription/subscription-modal.html.twig +7 -7
- package/templates/bcl-subscription/subscription.html.twig +3 -3
- package/templates/bcl-subscription-block/subscription-block.html.twig +14 -17
- package/templates/bcl-table/table.html.twig +61 -65
- package/templates/bcl-textarea/textarea.html.twig +44 -47
- package/templates/bcl-timeline/timeline-item.html.twig +12 -15
- package/templates/bcl-timeline/timeline.html.twig +42 -45
- package/templates/bcl-toasts/toasts.html.twig +56 -60
- package/templates/bcl-user/user-compact.html.twig +24 -27
- package/templates/bcl-user/user-terms.html.twig +6 -6
- package/templates/bcl-user/user.html.twig +117 -117
|
@@ -1,56 +1,53 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- corporate_contributions (string) (default: '') // value every 5 percent
|
|
5
3
|
- legend (description list object) (default: {})
|
|
6
4
|
- chart (boolean) (default: false)
|
|
7
5
|
|
|
8
|
-
Blocks -
|
|
6
|
+
Blocks -
|
|
9
7
|
project_status_contrib_chart
|
|
10
8
|
project_status_contrib_legend
|
|
11
9
|
#}
|
|
12
10
|
|
|
13
|
-
{
|
|
11
|
+
{%- set _corporate_contributions = corporate_contributions|default('') %}
|
|
14
12
|
{% set _legend = legend|default({}) %}
|
|
15
13
|
{% set _chart = chart ?? false %}
|
|
16
14
|
|
|
17
|
-
{
|
|
18
|
-
{
|
|
15
|
+
{%- if attributes is empty %}
|
|
16
|
+
{%- set attributes = create_attribute() %}
|
|
19
17
|
{% endif %}
|
|
20
18
|
|
|
21
|
-
{
|
|
19
|
+
{%- set attributes = attributes.addClass([
|
|
22
20
|
'bcl-project-contributions',
|
|
23
21
|
'border-bottom',
|
|
24
22
|
'pb-4',
|
|
25
23
|
'mb-4'
|
|
26
|
-
])
|
|
24
|
+
]) -%}
|
|
27
25
|
|
|
28
|
-
<div {{ attributes }}>
|
|
26
|
+
<div {{ attributes }}>{# -#}
|
|
29
27
|
<div class="row">
|
|
30
28
|
|
|
31
|
-
{
|
|
29
|
+
{%- if _chart -%}
|
|
32
30
|
<div class="bcl-project-contributions-chart col-5 col-md-3">
|
|
33
|
-
{
|
|
34
|
-
<div class="circular-progress" data-percentage="{{ _corporate_contributions }}">
|
|
35
|
-
<span class="circular-progress-left">
|
|
36
|
-
<span class="circular-progress-bar"></span>
|
|
37
|
-
</span>
|
|
38
|
-
<span class="circular-progress-right">
|
|
39
|
-
<span class="circular-progress-bar"></span>
|
|
40
|
-
</span>
|
|
31
|
+
{%- block project_status_contrib_chart -%}
|
|
32
|
+
<div class="circular-progress" data-percentage="{{ _corporate_contributions }}">{# -#}
|
|
33
|
+
<span class="circular-progress-left">{# -#}
|
|
34
|
+
<span class="circular-progress-bar"></span>{# -#}
|
|
35
|
+
</span>{# -#}
|
|
36
|
+
<span class="circular-progress-right">{# -#}
|
|
37
|
+
<span class="circular-progress-bar"></span>{# -#}
|
|
38
|
+
</span>{# -#}
|
|
41
39
|
</div>
|
|
42
|
-
{
|
|
40
|
+
{%- endblock -%}
|
|
43
41
|
</div>
|
|
44
|
-
{
|
|
42
|
+
{%- endif %}
|
|
45
43
|
|
|
46
|
-
{
|
|
44
|
+
{%- if _legend is not empty -%}
|
|
47
45
|
<div class="bcl-project-contributions-legend col-7 col-md-9 align-self-center">
|
|
48
|
-
{
|
|
49
|
-
{
|
|
50
|
-
{
|
|
46
|
+
{%- block project_status_contrib_legend %}
|
|
47
|
+
{%- include '@oe-bcl/bcl-description-list/description-list.html.twig' with _legend only %}
|
|
48
|
+
{%- endblock -%}
|
|
51
49
|
</div>
|
|
52
|
-
{
|
|
53
|
-
</div>
|
|
50
|
+
{%- endif -%}
|
|
51
|
+
</div>{# -#}
|
|
54
52
|
</div>
|
|
55
|
-
|
|
56
|
-
{% endapply %}
|
|
53
|
+
{#--#}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- label (string) (default: '')
|
|
5
3
|
- status (string) (default: 'planned')
|
|
@@ -12,7 +10,7 @@
|
|
|
12
10
|
- attributes (drupal attrs)
|
|
13
11
|
#}
|
|
14
12
|
|
|
15
|
-
{
|
|
13
|
+
{%- set _label = label|default('') %}
|
|
16
14
|
{% set _status = status|default('planned') %}
|
|
17
15
|
{% set _badge = badge|default('') %}
|
|
18
16
|
{% set _start_date = start_date|default('') %}
|
|
@@ -21,79 +19,76 @@
|
|
|
21
19
|
{% set _end_label = end_label|default('') %}
|
|
22
20
|
{% set _progress = progress|default('') %}
|
|
23
21
|
|
|
24
|
-
{
|
|
25
|
-
{
|
|
22
|
+
{%- if attributes is empty %}
|
|
23
|
+
{%- set attributes = create_attribute() %}
|
|
26
24
|
{% endif %}
|
|
27
25
|
|
|
28
|
-
{
|
|
26
|
+
{%- set attributes = attributes.addClass([
|
|
29
27
|
'bcl-project-status',
|
|
30
28
|
'border-bottom',
|
|
31
29
|
'pb-4',
|
|
32
30
|
'mb-4'
|
|
33
31
|
]) %}
|
|
34
32
|
|
|
35
|
-
{
|
|
33
|
+
{%- set _bgs = {
|
|
36
34
|
ongoing: 'info',
|
|
37
35
|
closed: 'dark',
|
|
38
36
|
planned: 'secondary',
|
|
39
37
|
} %}
|
|
40
|
-
{% set _bg = _bgs[_status]|default('secondary')
|
|
38
|
+
{% set _bg = _bgs[_status]|default('secondary') -%}
|
|
41
39
|
|
|
42
|
-
<div {{ attributes }}>
|
|
43
|
-
<div class="row">
|
|
40
|
+
<div {{ attributes }}>{# -#}
|
|
41
|
+
<div class="row">{# -#}
|
|
44
42
|
<div class="col-12 col-md-3">
|
|
45
|
-
{
|
|
43
|
+
{%- if _label is not empty -%}
|
|
46
44
|
<p class="fw-bold">{{ _label }}</p>
|
|
47
|
-
{
|
|
45
|
+
{%- endif %}
|
|
48
46
|
|
|
49
|
-
{
|
|
50
|
-
{
|
|
47
|
+
{%- if _badge is not empty %}
|
|
48
|
+
{%- include '@oe-bcl/bcl-badge/badge.html.twig' with {
|
|
51
49
|
label: _badge,
|
|
52
50
|
rounded_pill: true,
|
|
53
51
|
background: _bg,
|
|
54
52
|
attributes: create_attribute().addClass(['mb-3', 'mb-md-0']),
|
|
55
53
|
} only %}
|
|
56
|
-
{
|
|
54
|
+
{%- endif -%}
|
|
57
55
|
|
|
58
|
-
</div>
|
|
56
|
+
</div>{# -#}
|
|
59
57
|
|
|
60
|
-
<div class="col-12 col-md-9">
|
|
58
|
+
<div class="col-12 col-md-9">{# -#}
|
|
61
59
|
<div class="d-flex justify-content-between">
|
|
62
60
|
|
|
63
|
-
{
|
|
61
|
+
{%- if _start_date is not empty and _start_label is not empty -%}
|
|
64
62
|
<p class="fw-bold">
|
|
65
|
-
{{- _start_label -}} <br>
|
|
63
|
+
{{- _start_label -}} <br>{# -#}
|
|
66
64
|
<span class="fw-normal">
|
|
67
65
|
{{- _start_date -}}
|
|
68
|
-
</span>
|
|
66
|
+
</span>{# -#}
|
|
69
67
|
</p>
|
|
70
|
-
{
|
|
68
|
+
{%- endif %}
|
|
71
69
|
|
|
72
|
-
{
|
|
70
|
+
{%- if _end_date is not empty and _end_label is not empty -%}
|
|
73
71
|
<p class="fw-bold text-end">
|
|
74
|
-
{{- _end_label -}} <br>
|
|
72
|
+
{{- _end_label -}} <br>{# -#}
|
|
75
73
|
<span class="fw-normal">
|
|
76
74
|
{{- _end_date -}}
|
|
77
|
-
</span>
|
|
75
|
+
</span>{# -#}
|
|
78
76
|
</p>
|
|
79
|
-
{
|
|
77
|
+
{%- endif -%}
|
|
80
78
|
</div>
|
|
81
79
|
|
|
82
|
-
{
|
|
83
|
-
{
|
|
84
|
-
{
|
|
85
|
-
{
|
|
86
|
-
{
|
|
80
|
+
{%- if _progress is not empty or _status != 'ongoing' %}
|
|
81
|
+
{%- if _progress is empty %}
|
|
82
|
+
{%- set _progress = _status == 'closed' ? 100 : 0 %}
|
|
83
|
+
{%- endif %}
|
|
84
|
+
{%- include '@oe-bcl/bcl-progress/progress.html.twig' with {
|
|
87
85
|
variant: _bg,
|
|
88
86
|
hidden_label: true,
|
|
89
87
|
progress: _progress,
|
|
90
88
|
} only %}
|
|
91
|
-
{
|
|
89
|
+
{%- endif -%}
|
|
92
90
|
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
91
|
+
</div>{# -#}
|
|
92
|
+
</div>{# -#}
|
|
95
93
|
</div>
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
{% endapply %}
|
|
94
|
+
{#--#}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- activities (object[]) (default: [])
|
|
5
3
|
format: [
|
|
@@ -21,24 +19,24 @@
|
|
|
21
19
|
]
|
|
22
20
|
#}
|
|
23
21
|
|
|
24
|
-
{
|
|
22
|
+
{%- set _activities = activities|default([]) %}
|
|
25
23
|
|
|
26
|
-
{
|
|
27
|
-
{
|
|
28
|
-
{% endif
|
|
24
|
+
{%- if attributes is empty %}
|
|
25
|
+
{%- set attributes = create_attribute() %}
|
|
26
|
+
{% endif -%}
|
|
29
27
|
|
|
30
|
-
<div
|
|
28
|
+
<div
|
|
31
29
|
{{ attributes }}
|
|
32
30
|
>
|
|
33
|
-
{
|
|
34
|
-
{
|
|
31
|
+
{%- if _activities is not empty and _activities is iterable %}
|
|
32
|
+
{%- for _activity in _activities -%}
|
|
35
33
|
<div class="d-flex bg-lighter py-3 px-3 px-md-3-5 mb-3-5 rounded-2">
|
|
36
|
-
{
|
|
34
|
+
{%- if _activity.image is not empty -%}
|
|
37
35
|
<div>
|
|
38
36
|
{{- _activity.image -}}
|
|
39
37
|
</div>
|
|
40
|
-
{
|
|
41
|
-
{
|
|
38
|
+
{%- endif %}
|
|
39
|
+
{%- if _activity.content is not empty and _activity.meta is not empty -%}
|
|
42
40
|
<div>
|
|
43
41
|
{%- if _activity.content is not empty -%}
|
|
44
42
|
<p class="mb-2">{{- _activity.content -}}</p>
|
|
@@ -56,8 +54,7 @@
|
|
|
56
54
|
</div>
|
|
57
55
|
{%- endif -%}
|
|
58
56
|
</div>
|
|
59
|
-
{
|
|
60
|
-
{% endif
|
|
57
|
+
{%- endfor %}
|
|
58
|
+
{% endif -%}
|
|
61
59
|
</div>
|
|
62
|
-
|
|
63
|
-
{% endapply %}
|
|
60
|
+
{#--#}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{% extends "@oe-bcl/bcl-base-templates/listing-page.html.twig" -%}
|
|
2
2
|
|
|
3
3
|
{%- block banner %}
|
|
4
|
-
{% if banner.search_bar is defined
|
|
5
|
-
<div class="bg-lighter pt-3 pb-4 pb-lg-3">
|
|
6
|
-
<div class="container">
|
|
7
|
-
<div class="row">
|
|
4
|
+
{% if banner.search_bar is defined -%}
|
|
5
|
+
<div class="bg-lighter pt-3 pb-4 pb-lg-3">{# -#}
|
|
6
|
+
<div class="container">{# -#}
|
|
7
|
+
<div class="row">{# -#}
|
|
8
8
|
<div class="col-12 col-lg-3">
|
|
9
|
-
{
|
|
9
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
10
10
|
title: main_title,
|
|
11
11
|
title_tag: "h1",
|
|
12
12
|
attributes: create_attribute().addClass(['mb-3', 'mb-lg-0']),
|
|
13
|
-
} only
|
|
14
|
-
</div>
|
|
13
|
+
} only -%}
|
|
14
|
+
</div>{# -#}
|
|
15
15
|
<div class="col-12 col-lg-6 align-self-center">
|
|
16
|
-
{
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
16
|
+
{%- include '@oe-bcl/bcl-search-form/search-form.html.twig' with banner.search_bar only -%}
|
|
17
|
+
</div>{# -#}
|
|
18
|
+
</div>{# -#}
|
|
19
|
+
</div>{# -#}
|
|
20
20
|
</div>
|
|
21
|
-
{
|
|
21
|
+
{%- endif %}
|
|
22
22
|
{%- endblock -%}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- pill (boolean) (default: false)
|
|
5
3
|
- icon (icon Object) (default: {})
|
|
@@ -9,45 +7,44 @@
|
|
|
9
7
|
]
|
|
10
8
|
#}
|
|
11
9
|
|
|
12
|
-
{
|
|
10
|
+
{%- set _pill = pill ?? false %}
|
|
13
11
|
{% set _icon = icon|default({}) %}
|
|
14
12
|
{% set _submit = submit|default({}) %}
|
|
15
13
|
{% set _input = input|default({}) %}
|
|
16
14
|
|
|
17
|
-
{
|
|
15
|
+
{%- set _classes = ['bcl-search-form'] %}
|
|
18
16
|
|
|
19
|
-
{
|
|
20
|
-
{
|
|
17
|
+
{%- if _pill %}
|
|
18
|
+
{%- set _classes = _classes|merge(['rounded']) %}
|
|
21
19
|
{% endif %}
|
|
22
20
|
|
|
23
|
-
{
|
|
24
|
-
{
|
|
21
|
+
{%- if _submit is not empty %}
|
|
22
|
+
{%- set _classes = _classes|merge(['submittable']) %}
|
|
25
23
|
{% endif %}
|
|
26
24
|
|
|
27
|
-
{
|
|
28
|
-
{
|
|
25
|
+
{%- if _icon is not empty %}
|
|
26
|
+
{%- set _input = _input|merge({
|
|
29
27
|
attributes: _input.attributes.addClass("ps-5")
|
|
30
28
|
}) %}
|
|
31
29
|
{% endif %}
|
|
32
30
|
|
|
33
|
-
{
|
|
34
|
-
{
|
|
31
|
+
{%- if attributes is empty %}
|
|
32
|
+
{%- set attributes = create_attribute() %}
|
|
35
33
|
{% endif %}
|
|
36
34
|
|
|
37
|
-
{
|
|
35
|
+
{%- set attributes = attributes.addClass( _classes ) -%}
|
|
38
36
|
|
|
39
37
|
<form
|
|
40
38
|
{{ attributes }}
|
|
41
|
-
>
|
|
39
|
+
>{# -#}
|
|
42
40
|
<div class="bcl-search-form__group">
|
|
43
|
-
{
|
|
44
|
-
{
|
|
45
|
-
{
|
|
46
|
-
{
|
|
47
|
-
{
|
|
48
|
-
{
|
|
49
|
-
{
|
|
50
|
-
</div>
|
|
41
|
+
{%- if _icon is not empty %}
|
|
42
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with _icon only %}
|
|
43
|
+
{%- endif %}
|
|
44
|
+
{%- include '@oe-bcl/bcl-form-input/form-input.html.twig' with _input only %}
|
|
45
|
+
{%- if _submit is not empty %}
|
|
46
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with _submit only %}
|
|
47
|
+
{%- endif -%}
|
|
48
|
+
</div>{# -#}
|
|
51
49
|
</form>
|
|
52
|
-
|
|
53
|
-
{% endapply %}
|
|
50
|
+
{#--#}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{#
|
|
4
2
|
Parameters:
|
|
5
3
|
- id (string) (default: '')
|
|
@@ -35,7 +33,7 @@
|
|
|
35
33
|
- attributes (drupal attrs)
|
|
36
34
|
#}
|
|
37
35
|
|
|
38
|
-
{
|
|
36
|
+
{%- set _id = id|default('') %}
|
|
39
37
|
{% set _label = label|default('') %}
|
|
40
38
|
{% set _label_extra_classes = label_extra_classes|default('') %}
|
|
41
39
|
{% set _hidden_label = hidden_label ?? false %}
|
|
@@ -52,59 +50,59 @@
|
|
|
52
50
|
{% set _aria_label = aria_label|default('') %}
|
|
53
51
|
{% set _clean_class = clean_class ?? false %}
|
|
54
52
|
|
|
55
|
-
{
|
|
53
|
+
{%- set _classes = ['form-select'] %}
|
|
56
54
|
{% set _label_class = 'form-label' %}
|
|
57
55
|
|
|
58
|
-
{
|
|
59
|
-
{
|
|
56
|
+
{%- if _clean_class %}
|
|
57
|
+
{%- set _classes = [] %}
|
|
60
58
|
{% endif %}
|
|
61
59
|
|
|
62
|
-
{
|
|
63
|
-
{
|
|
60
|
+
{%- if _invalid %}
|
|
61
|
+
{%- set _classes = _classes|merge(['is-invalid']) %}
|
|
64
62
|
{% endif %}
|
|
65
63
|
|
|
66
|
-
{
|
|
67
|
-
{
|
|
64
|
+
{%- if _valid %}
|
|
65
|
+
{%- set _classes = _classes|merge(['is-valid']) %}
|
|
68
66
|
{% endif %}
|
|
69
67
|
|
|
70
|
-
{
|
|
71
|
-
{
|
|
68
|
+
{%- if attributes is empty %}
|
|
69
|
+
{%- set attributes = create_attribute() %}
|
|
72
70
|
{% endif %}
|
|
73
71
|
|
|
74
|
-
{
|
|
75
|
-
{
|
|
72
|
+
{%- if _label_extra_classes is not empty %}
|
|
73
|
+
{%- set _label_class = _label_class ~ ' ' ~ _label_extra_classes %}
|
|
76
74
|
{% endif %}
|
|
77
75
|
|
|
78
|
-
{
|
|
79
|
-
{
|
|
76
|
+
{%- if _aria_label is not empty %}
|
|
77
|
+
{%- set attributes = attributes.setAttribute('aria-label', _aria_label) %}
|
|
80
78
|
{% endif %}
|
|
81
79
|
|
|
82
|
-
{
|
|
83
|
-
{
|
|
80
|
+
{%- if _id is not empty %}
|
|
81
|
+
{%- set attributes = attributes.setAttribute('id', _id) %}
|
|
84
82
|
{% endif %}
|
|
85
83
|
|
|
86
|
-
{
|
|
87
|
-
{
|
|
84
|
+
{%- if _disabled %}
|
|
85
|
+
{%- set attributes = attributes.setAttribute('disabled', true) %}
|
|
88
86
|
{% endif %}
|
|
89
87
|
|
|
90
|
-
{
|
|
91
|
-
{
|
|
88
|
+
{%- if _multiple %}
|
|
89
|
+
{%- set attributes = attributes.setAttribute('multiple', true) %}
|
|
92
90
|
{% endif %}
|
|
93
91
|
|
|
94
|
-
{
|
|
95
|
-
{
|
|
92
|
+
{%- if _required %}
|
|
93
|
+
{%- set attributes = attributes.setAttribute('required', true) %}
|
|
96
94
|
{% endif %}
|
|
97
95
|
|
|
98
|
-
{
|
|
99
|
-
{
|
|
96
|
+
{%- if _hidden_label %}
|
|
97
|
+
{%- set _label_class = _label_class ~ ' visually-hidden' %}
|
|
100
98
|
{% endif %}
|
|
101
99
|
|
|
102
|
-
{
|
|
103
|
-
{
|
|
100
|
+
{%- if _classes is not empty %}
|
|
101
|
+
{%- set attributes = attributes.addClass(_classes) %}
|
|
104
102
|
{% endif %}
|
|
105
103
|
|
|
106
|
-
{
|
|
107
|
-
{
|
|
104
|
+
{%- if _label is not empty %}
|
|
105
|
+
{%- set _label_block -%}
|
|
108
106
|
<label
|
|
109
107
|
{% if _id %}
|
|
110
108
|
for="{{ _id }}"
|
|
@@ -113,65 +111,65 @@
|
|
|
113
111
|
>
|
|
114
112
|
{{- label -}}
|
|
115
113
|
</label>
|
|
116
|
-
{
|
|
114
|
+
{%- endset %}
|
|
117
115
|
{% endif %}
|
|
118
116
|
|
|
119
|
-
{
|
|
120
|
-
{{ _label_block|raw }}
|
|
121
|
-
{
|
|
117
|
+
{%- if _label_block is defined %}
|
|
118
|
+
{{- _label_block|raw }}
|
|
119
|
+
{%- endif -%}
|
|
122
120
|
<select
|
|
123
121
|
{{ attributes }}
|
|
124
122
|
>
|
|
125
|
-
{
|
|
126
|
-
{
|
|
127
|
-
{
|
|
123
|
+
{%- if _options is not empty and _options is iterable %}
|
|
124
|
+
{%- for _option in _options %}
|
|
125
|
+
{%- if _option.optgroup is defined -%}
|
|
128
126
|
<optgroup label="{{ _option.label }}">
|
|
129
|
-
{
|
|
130
|
-
{
|
|
127
|
+
{%- if _option.options is not empty and _option.options is iterable %}
|
|
128
|
+
{%- for _optGroupOption in _option.options -%}
|
|
131
129
|
<option
|
|
132
130
|
value="{{ _optGroupOption.value }}"
|
|
133
131
|
{% if _optGroupOption.selected is defined %}
|
|
134
132
|
selected
|
|
135
133
|
{% endif %}
|
|
136
|
-
{
|
|
134
|
+
{%- if _optGroupOption.disabled %}
|
|
137
135
|
disabled
|
|
138
136
|
{% endif %}
|
|
139
137
|
>
|
|
140
138
|
{{- _optGroupOption.label -}}
|
|
141
139
|
</option>
|
|
142
|
-
{
|
|
143
|
-
{
|
|
140
|
+
{%- endfor %}
|
|
141
|
+
{%- endif -%}
|
|
144
142
|
</optgroup>
|
|
145
|
-
{
|
|
143
|
+
{%- else -%}
|
|
146
144
|
<option
|
|
147
145
|
value="{{ _option.value }}"
|
|
148
146
|
{% if _option.selected is defined %}
|
|
149
147
|
selected
|
|
150
148
|
{% endif %}
|
|
151
|
-
{
|
|
149
|
+
{%- if _option.disabled %}
|
|
152
150
|
disabled
|
|
153
151
|
{% endif %}
|
|
154
|
-
{
|
|
152
|
+
{%- if _option.hidden %}
|
|
155
153
|
hidden
|
|
156
154
|
{% endif %}
|
|
157
155
|
>
|
|
158
156
|
{{- _option.label -}}
|
|
159
157
|
</option>
|
|
160
|
-
{
|
|
161
|
-
{
|
|
162
|
-
{% endif
|
|
158
|
+
{%- endif %}
|
|
159
|
+
{%- endfor %}
|
|
160
|
+
{% endif -%}
|
|
163
161
|
</select>
|
|
164
|
-
{
|
|
162
|
+
{%- if _invalid_feedback is not empty -%}
|
|
165
163
|
<div class="invalid-feedback">
|
|
166
164
|
{{- _invalid_feedback -}}
|
|
167
165
|
</div>
|
|
168
|
-
{
|
|
169
|
-
{% if _valid_feedback is not empty
|
|
166
|
+
{%- endif %}
|
|
167
|
+
{% if _valid_feedback is not empty -%}
|
|
170
168
|
<div class="valid-feedback">
|
|
171
169
|
{{- _valid_feedback -}}
|
|
172
170
|
</div>
|
|
173
|
-
{
|
|
174
|
-
{% if _helper_text is not empty
|
|
171
|
+
{%- endif %}
|
|
172
|
+
{% if _helper_text is not empty -%}
|
|
175
173
|
<div
|
|
176
174
|
class="form-text"
|
|
177
175
|
{% if _helper_text_id is not empty %}
|
|
@@ -179,6 +177,4 @@
|
|
|
179
177
|
{% endif %}>
|
|
180
178
|
{{- _helper_text -}}
|
|
181
179
|
</div>
|
|
182
|
-
{
|
|
183
|
-
|
|
184
|
-
{% endapply %}
|
|
180
|
+
{%- endif -%}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- type (string) (default: 'border')
|
|
5
3
|
- options ['border', 'grow']
|
|
@@ -10,31 +8,30 @@
|
|
|
10
8
|
- attributes (drupal attrs)
|
|
11
9
|
#}
|
|
12
10
|
|
|
13
|
-
{
|
|
11
|
+
{%- set _type = type|default('border') %}
|
|
14
12
|
{% set _variant = variant|default('') %}
|
|
15
13
|
{% set _size = size|default('') %}
|
|
16
14
|
{% set _assistive_text = assistive_text|default('') %}
|
|
17
15
|
|
|
18
|
-
{
|
|
16
|
+
{%- set _classes = ['spinner-' ~ _type] %}
|
|
19
17
|
{% if _size is not empty %}
|
|
20
|
-
{
|
|
18
|
+
{%- set _classes = _classes|merge(['spinner-' ~ _type ~ '-' ~ _size]) %}
|
|
21
19
|
{% endif %}
|
|
22
20
|
{% if _variant is not empty %}
|
|
23
|
-
{
|
|
21
|
+
{%- set _classes = _classes|merge(['text-' ~ _variant]) %}
|
|
24
22
|
{% endif %}
|
|
25
23
|
|
|
26
|
-
{
|
|
27
|
-
{
|
|
24
|
+
{%- if attributes is empty %}
|
|
25
|
+
{%- set attributes = create_attribute() %}
|
|
28
26
|
{% endif %}
|
|
29
27
|
|
|
30
|
-
{
|
|
28
|
+
{%- set attributes = attributes.addClass(_classes).setAttribute('role', 'status') -%}
|
|
31
29
|
|
|
32
30
|
<div
|
|
33
31
|
{{ attributes }}
|
|
34
32
|
>
|
|
35
|
-
{
|
|
33
|
+
{%- if _assistive_text is not empty -%}
|
|
36
34
|
<span class="visually-hidden">{{ _assistive_text }}</span>
|
|
37
|
-
{
|
|
35
|
+
{%- endif -%}
|
|
38
36
|
</div>
|
|
39
|
-
|
|
40
|
-
{% endapply %}
|
|
37
|
+
{#--#}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{% extends "@oe-bcl/bcl-modal/modal.html.twig" %}
|
|
2
2
|
|
|
3
|
-
{
|
|
3
|
+
{#- Parameters:
|
|
4
4
|
- form: (form object) (default: {})
|
|
5
5
|
- success_alert: (alert object) (default: {})
|
|
6
6
|
- error_alert: (alert Object) (default: {})
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
- messages
|
|
11
11
|
#}
|
|
12
12
|
|
|
13
|
-
{
|
|
13
|
+
{%- set _form = form|default({}) %}
|
|
14
14
|
{% set _success_alert = success_alert|default({}) %}
|
|
15
15
|
{% set _error_alert = error_alert|default({}) %}
|
|
16
16
|
|
|
17
|
-
{
|
|
18
|
-
{
|
|
17
|
+
{%- block body %}
|
|
18
|
+
{%- include '@oe-bcl/bcl-form/form.html.twig' with _form only %}
|
|
19
19
|
{% endblock %}
|
|
20
20
|
|
|
21
|
-
{
|
|
22
|
-
{
|
|
23
|
-
{
|
|
21
|
+
{%- block messages %}
|
|
22
|
+
{%- include '@oe-bcl/bcl-alert/alert.html.twig' with _success_alert only %}
|
|
23
|
+
{%- include '@oe-bcl/bcl-alert/alert.html.twig' with _error_alert only %}
|
|
24
24
|
{% endblock %}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{% extends '@oe-bcl/bcl-base-templates/content-type.html.twig' -%}
|
|
2
2
|
|
|
3
3
|
{%- block sidebar %}
|
|
4
|
-
{
|
|
4
|
+
{%- include '@oe-bcl/bcl-inpage-navigation/inpage-navigation.html.twig' with sidebar only %}
|
|
5
5
|
{%- endblock -%}
|
|
6
6
|
|
|
7
7
|
{%- block content_bottom %}
|
|
8
|
-
{
|
|
9
|
-
{
|
|
8
|
+
{%- include '@oe-bcl/bcl-subscription-block/subscription-block.html.twig' with subscription only %}
|
|
9
|
+
{%- include '@oe-bcl/bcl-subscription/subscription-modal.html.twig' with modal only %}
|
|
10
10
|
{%- endblock -%}
|