@openeuropa/bcl-theme-joinup 0.4230.202512021730 → 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/css/oe-bcl-joinup.css +61 -48
- package/css/oe-bcl-joinup.css.map +1 -1
- package/css/oe-bcl-joinup.min.css +1 -1
- package/css/oe-bcl-joinup.min.css.map +1 -1
- package/js/oe-bcl-joinup.bundle.js +112 -1
- package/js/oe-bcl-joinup.bundle.js.map +1 -1
- package/js/oe-bcl-joinup.bundle.min.js +1 -1
- package/js/oe-bcl-joinup.bundle.min.js.map +1 -1
- package/js/oe-bcl-joinup.esm.js +111 -1
- package/js/oe-bcl-joinup.esm.js.map +1 -1
- package/js/oe-bcl-joinup.esm.min.js +1 -1
- package/js/oe-bcl-joinup.esm.min.js.map +1 -1
- package/js/oe-bcl-joinup.umd.js +112 -1
- package/js/oe-bcl-joinup.umd.js.map +1 -1
- package/js/oe-bcl-joinup.umd.min.js +1 -1
- package/js/oe-bcl-joinup.umd.min.js.map +1 -1
- package/package.json +7 -7
- package/src/js/index.esm.js +2 -0
- package/src/js/index.umd.js +2 -0
- package/templates/bcl-accordion/accordion.html.twig +42 -43
- package/templates/bcl-alert/alert.html.twig +18 -18
- package/templates/bcl-badge/badge.html.twig +11 -12
- package/templates/bcl-banner/banner.html.twig +34 -34
- package/templates/bcl-base-templates/content-type.html.twig +63 -64
- 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 -17
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +24 -25
- package/templates/bcl-button/button.html.twig +24 -24
- package/templates/bcl-button-group/button-group.html.twig +25 -26
- package/templates/bcl-card/card.html.twig +98 -98
- package/templates/bcl-card-layout/card-layout.html.twig +34 -34
- package/templates/bcl-carousel/carousel.html.twig +64 -64
- package/templates/bcl-contact-form/contact-form.html.twig +1 -1
- package/templates/bcl-content-banner/content-banner.html.twig +37 -37
- package/templates/bcl-date-block/date-block.html.twig +26 -26
- package/templates/bcl-description-list/description-list-details.html.twig +6 -6
- package/templates/bcl-description-list/description-list-title.html.twig +11 -11
- package/templates/bcl-description-list/description-list.html.twig +44 -45
- package/templates/bcl-dropdown/dropdown.html.twig +48 -49
- package/templates/bcl-event/event.html.twig +7 -7
- package/templates/bcl-fact-figures/fact-figures.html.twig +34 -34
- package/templates/bcl-featured-media/featured-media.html.twig +42 -43
- package/templates/bcl-file/file-translations.html.twig +29 -29
- package/templates/bcl-file/file.html.twig +46 -46
- package/templates/bcl-footer/footer.html.twig +31 -31
- package/templates/bcl-form/form.html.twig +70 -70
- package/templates/bcl-form-input/form-input.html.twig +57 -58
- package/templates/bcl-gallery/gallery-item.html.twig +20 -20
- package/templates/bcl-gallery/gallery.html.twig +62 -63
- 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 -79
- package/templates/bcl-heading/heading.html.twig +13 -14
- package/templates/bcl-icon/icon.html.twig +10 -10
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +20 -20
- package/templates/bcl-landing-page/landing-page.html.twig +33 -33
- package/templates/bcl-language-list/language-list-grid.html.twig +25 -25
- package/templates/bcl-language-list/language-list-modal.html.twig +52 -52
- package/templates/bcl-language-list/language-list.html.twig +33 -34
- package/templates/bcl-language-switcher/language-switcher.html.twig +12 -12
- package/templates/bcl-link/link.html.twig +24 -24
- package/templates/bcl-links-block/links-block.html.twig +29 -30
- package/templates/bcl-list-group/list-group.html.twig +43 -44
- package/templates/bcl-listing/listing.html.twig +88 -88
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +18 -18
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +27 -22
- package/templates/bcl-mega-menu/mega-menu.html.twig +37 -35
- package/templates/bcl-modal/modal.html.twig +17 -17
- package/templates/bcl-navbar/navbar.html.twig +35 -35
- package/templates/bcl-navigation/navigation.html.twig +106 -106
- package/templates/bcl-offcanvas/offcanvas.html.twig +33 -33
- package/templates/bcl-page/page.html.twig +27 -27
- package/templates/bcl-pagination/pagination-item.html.twig +22 -23
- package/templates/bcl-pagination/pagination.html.twig +59 -59
- package/templates/bcl-pagination-v2/pagination-item.html.twig +31 -32
- package/templates/bcl-pagination-v2/pagination.html.twig +79 -79
- package/templates/bcl-person/person.html.twig +12 -12
- package/templates/bcl-placeholder/placeholder.html.twig +14 -15
- package/templates/bcl-progress/progress.html.twig +16 -17
- package/templates/bcl-project/project-lists.html.twig +25 -25
- package/templates/bcl-project/project.html.twig +35 -35
- package/templates/bcl-project-status/project-contributions.html.twig +25 -25
- package/templates/bcl-project-status/project-status.html.twig +32 -34
- package/templates/bcl-recent-activities/recent-activities.html.twig +13 -13
- package/templates/bcl-search/search.html.twig +12 -12
- package/templates/bcl-search-form/search-form.html.twig +21 -21
- package/templates/bcl-select/select.html.twig +52 -53
- package/templates/bcl-spinner/spinner.html.twig +10 -10
- 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 -14
- package/templates/bcl-table/table.html.twig +61 -62
- package/templates/bcl-textarea/textarea.html.twig +44 -44
- package/templates/bcl-timeline/timeline-item.html.twig +12 -12
- package/templates/bcl-timeline/timeline.html.twig +42 -42
- package/templates/bcl-toasts/toasts.html.twig +56 -57
- package/templates/bcl-user/user-compact.html.twig +24 -24
- package/templates/bcl-user/user-terms.html.twig +6 -6
- package/templates/bcl-user/user.html.twig +117 -117
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
- attributes (drupal attrs)
|
|
13
13
|
#}
|
|
14
14
|
|
|
15
|
-
{
|
|
15
|
+
{%- set _progress = progress|default(0) %}
|
|
16
16
|
{% set _min = min|default(0) %}
|
|
17
17
|
{% set _max = max|default(100) %}
|
|
18
18
|
{% set _striped = striped ?? false %}
|
|
@@ -23,33 +23,33 @@
|
|
|
23
23
|
{% set _variant = variant|default('') %}
|
|
24
24
|
{% set _message = message|default('') %}
|
|
25
25
|
|
|
26
|
-
{
|
|
26
|
+
{%- set _classes = 'progress-bar' %}
|
|
27
27
|
{% if _striped is not empty %}
|
|
28
|
-
{
|
|
28
|
+
{%- set _classes = _classes ~ ' progress-bar-striped' %}
|
|
29
29
|
{% endif %}
|
|
30
30
|
{% if _animated is not empty %}
|
|
31
|
-
{
|
|
31
|
+
{%- set _classes = _classes ~ ' progress-bar-animated' %}
|
|
32
32
|
{% endif %}
|
|
33
33
|
{% if _variant is not empty %}
|
|
34
|
-
{
|
|
34
|
+
{%- set _classes = _classes ~ ' text-bg-' ~ _variant %}
|
|
35
35
|
{% endif %}
|
|
36
36
|
|
|
37
|
-
{
|
|
38
|
-
{
|
|
37
|
+
{%- if attributes is empty %}
|
|
38
|
+
{%- set attributes = create_attribute() %}
|
|
39
39
|
{% endif %}
|
|
40
40
|
|
|
41
|
-
{
|
|
41
|
+
{%- set attributes = attributes.addClass(['progress']) %}
|
|
42
42
|
|
|
43
|
-
{
|
|
44
|
-
{
|
|
43
|
+
{%- if _bar_label is empty %}
|
|
44
|
+
{%- set _bar_label = _progress ~ '%' %}
|
|
45
45
|
{% endif %}
|
|
46
46
|
|
|
47
|
-
{
|
|
47
|
+
{%- if _label is not empty -%}
|
|
48
48
|
<label class="progress-bar-label">{{ _label }}</label>
|
|
49
|
-
{
|
|
49
|
+
{%- endif -%}
|
|
50
50
|
<div
|
|
51
51
|
{{ attributes }}
|
|
52
|
-
>
|
|
52
|
+
>{# -#}
|
|
53
53
|
<div
|
|
54
54
|
class="{{ _classes }}"
|
|
55
55
|
role="progressbar"
|
|
@@ -62,9 +62,8 @@
|
|
|
62
62
|
{%- if not _hidden_label -%}
|
|
63
63
|
{{- _bar_label -}}
|
|
64
64
|
{%- endif -%}
|
|
65
|
-
</div>
|
|
65
|
+
</div>{# -#}
|
|
66
66
|
</div>
|
|
67
|
-
{
|
|
67
|
+
{%- if _message is not empty -%}
|
|
68
68
|
<small class="form-text text-muted progress-bar-message">{{ _message }}</small>
|
|
69
|
-
{
|
|
70
|
-
|
|
69
|
+
{%- endif -%}
|
|
@@ -13,24 +13,24 @@
|
|
|
13
13
|
}
|
|
14
14
|
#}
|
|
15
15
|
|
|
16
|
-
{
|
|
16
|
+
{%- set _title = title|default('') %}
|
|
17
17
|
{% set _title_tag = title_tag|default('h2') %}
|
|
18
18
|
{% set _title_link = title_link|default({}) %}
|
|
19
19
|
{% set _title_attributes = title_attributes ?: create_attribute() %}
|
|
20
20
|
{% set _items = items|default([]) %}
|
|
21
21
|
|
|
22
|
-
{
|
|
23
|
-
{
|
|
22
|
+
{%- if attributes is empty %}
|
|
23
|
+
{%- set attributes = create_attribute() %}
|
|
24
24
|
{% endif %}
|
|
25
25
|
|
|
26
|
-
{
|
|
27
|
-
{% set _title_attributes = _title_attributes.addClass(_title_classes)
|
|
26
|
+
{%- set _title_classes = ['my-4-5'] %}
|
|
27
|
+
{% set _title_attributes = _title_attributes.addClass(_title_classes) -%}
|
|
28
28
|
|
|
29
29
|
<div
|
|
30
30
|
{{ attributes }}
|
|
31
31
|
>
|
|
32
|
-
{
|
|
33
|
-
{
|
|
32
|
+
{%- if _title is not empty %}
|
|
33
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
34
34
|
title: _title,
|
|
35
35
|
title_tag: _title_tag,
|
|
36
36
|
title_link: _title_link,
|
|
@@ -38,32 +38,32 @@
|
|
|
38
38
|
} only %}
|
|
39
39
|
{% endif %}
|
|
40
40
|
{% if _items is defined and _items is not empty %}
|
|
41
|
-
{
|
|
42
|
-
{
|
|
43
|
-
{
|
|
44
|
-
{
|
|
45
|
-
{
|
|
41
|
+
{%- for _item in _items %}
|
|
42
|
+
{%- if _item.title is not empty %}
|
|
43
|
+
{%- set _item_title_attributes = _item.title_attributes ?: create_attribute() %}
|
|
44
|
+
{%- set _item_title_attributes = _item_title_attributes.addClass(['mb-3']) %}
|
|
45
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
46
46
|
title: _item.title,
|
|
47
47
|
title_tag: _item.title_tag|default('h3'),
|
|
48
48
|
title_link: _item.title_link|default({}),
|
|
49
49
|
attributes: _item_title_attributes,
|
|
50
50
|
} only %}
|
|
51
|
-
{
|
|
52
|
-
{
|
|
53
|
-
{
|
|
54
|
-
{
|
|
51
|
+
{%- endif %}
|
|
52
|
+
{%- for _list in _item.content %}
|
|
53
|
+
{%- if _list.attributes is empty %}
|
|
54
|
+
{%- set _list = _list|merge({
|
|
55
55
|
attributes: create_attribute()
|
|
56
56
|
}) %}
|
|
57
|
-
{
|
|
58
|
-
{
|
|
59
|
-
{
|
|
57
|
+
{%- endif %}
|
|
58
|
+
{%- if not loop.last %}
|
|
59
|
+
{%- set _list = _list|merge({
|
|
60
60
|
attributes: _list.attributes.addClass(['border-bottom', 'mb-3'])
|
|
61
61
|
})
|
|
62
62
|
%}
|
|
63
|
-
{
|
|
64
|
-
{
|
|
65
|
-
{
|
|
66
|
-
{
|
|
67
|
-
{% endif
|
|
63
|
+
{%- endif %}
|
|
64
|
+
{%- include '@oe-bcl/bcl-description-list/description-list.html.twig' with _list only %}
|
|
65
|
+
{%- endfor %}
|
|
66
|
+
{%- endfor %}
|
|
67
|
+
{% endif -%}
|
|
68
68
|
</div>
|
|
69
|
-
|
|
69
|
+
{#--#}
|
|
@@ -1,31 +1,31 @@
|
|
|
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 %}
|
|
8
|
-
{
|
|
9
|
-
{
|
|
10
|
-
{
|
|
11
|
-
{
|
|
8
|
+
{%- if project_status is not empty %}
|
|
9
|
+
{%- if project_status_title is not empty %}
|
|
10
|
+
{%- set _project_title_attributes = create_attribute().addClass(['mb-4']) %}
|
|
11
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
12
12
|
title: project_status_title,
|
|
13
13
|
title_tag: 'h2',
|
|
14
14
|
attributes: create_attribute().setAttribute('id', project_status_id),
|
|
15
15
|
} only %}
|
|
16
|
-
{
|
|
17
|
-
{
|
|
18
|
-
{
|
|
19
|
-
{
|
|
20
|
-
{
|
|
21
|
-
{
|
|
22
|
-
{
|
|
23
|
-
{
|
|
24
|
-
{
|
|
16
|
+
{%- endif %}
|
|
17
|
+
{%- include '@oe-bcl/bcl-project-status/project-status.html.twig' with project_status %}
|
|
18
|
+
{%- if project_contributions is not empty %}
|
|
19
|
+
{%- include '@oe-bcl/bcl-project-status/project-contributions.html.twig' with project_contributions %}
|
|
20
|
+
{%- endif %}
|
|
21
|
+
{%- if status_lists is not empty %}
|
|
22
|
+
{%- include '@oe-bcl/bcl-project/project-lists.html.twig' with status_lists only %}
|
|
23
|
+
{%- endif %}
|
|
24
|
+
{%- endif %}
|
|
25
25
|
|
|
26
|
-
{
|
|
27
|
-
{
|
|
28
|
-
{
|
|
26
|
+
{%- if first_paragraphs is defined and first_paragraphs is not empty %}
|
|
27
|
+
{%- for _paragraph in first_paragraphs %}
|
|
28
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
29
29
|
title: _paragraph.title,
|
|
30
30
|
title_tag: 'h2',
|
|
31
31
|
attributes: create_attribute().addClass(['mb-4', 'pt-3'])
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
} only %}
|
|
34
34
|
{{- _paragraph.content -}}
|
|
35
35
|
{% endfor %}
|
|
36
|
-
{
|
|
36
|
+
{%- endif %}
|
|
37
37
|
|
|
38
|
-
{
|
|
39
|
-
{
|
|
40
|
-
{
|
|
38
|
+
{%- if featured_lists is not empty %}
|
|
39
|
+
{%- include '@oe-bcl/bcl-project/project-lists.html.twig' with featured_lists only %}
|
|
40
|
+
{%- endif %}
|
|
41
41
|
|
|
42
|
-
{
|
|
43
|
-
{
|
|
44
|
-
{
|
|
42
|
+
{%- if content_lists is not empty %}
|
|
43
|
+
{%- include '@oe-bcl/bcl-project/project-lists.html.twig' with content_lists only %}
|
|
44
|
+
{%- endif %}
|
|
45
45
|
|
|
46
|
-
{
|
|
47
|
-
{
|
|
48
|
-
{
|
|
46
|
+
{%- if second_paragraphs is defined and second_paragraphs is not empty %}
|
|
47
|
+
{%- for _paragraph in second_paragraphs %}
|
|
48
|
+
{%- include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
49
49
|
title: _paragraph.title,
|
|
50
50
|
title_tag: 'h2',
|
|
51
51
|
attributes: create_attribute().addClass(['mb-4', 'pt-3'])
|
|
@@ -53,19 +53,19 @@
|
|
|
53
53
|
} only %}
|
|
54
54
|
{{- _paragraph.content -}}
|
|
55
55
|
{% endfor %}
|
|
56
|
-
{
|
|
56
|
+
{%- endif %}
|
|
57
57
|
|
|
58
|
-
{
|
|
58
|
+
{%- if gallery is not empty -%}
|
|
59
59
|
<div class="mt-3 mb-4-5">
|
|
60
|
-
{
|
|
60
|
+
{%- include '@oe-bcl/bcl-gallery/gallery.html.twig' with gallery only -%}
|
|
61
61
|
</div>
|
|
62
|
-
{
|
|
62
|
+
{%- endif %}
|
|
63
63
|
|
|
64
|
-
{
|
|
64
|
+
{%- if social_block is not empty %}
|
|
65
65
|
{%- block social_block %}
|
|
66
|
-
{{ social_buttons }}
|
|
67
|
-
{
|
|
68
|
-
{
|
|
66
|
+
{{- social_buttons }}
|
|
67
|
+
{%- include '@oe-bcl/bcl-button/button.html.twig' with button_social_modal only %}
|
|
68
|
+
{%- include '@oe-bcl/bcl-modal/modal.html.twig' with social_modal only %}
|
|
69
69
|
{%- endblock -%}
|
|
70
70
|
{% endif %}
|
|
71
71
|
|
|
@@ -3,51 +3,51 @@
|
|
|
3
3
|
- legend (description list object) (default: {})
|
|
4
4
|
- chart (boolean) (default: false)
|
|
5
5
|
|
|
6
|
-
Blocks -
|
|
6
|
+
Blocks -
|
|
7
7
|
project_status_contrib_chart
|
|
8
8
|
project_status_contrib_legend
|
|
9
9
|
#}
|
|
10
10
|
|
|
11
|
-
{
|
|
11
|
+
{%- set _corporate_contributions = corporate_contributions|default('') %}
|
|
12
12
|
{% set _legend = legend|default({}) %}
|
|
13
13
|
{% set _chart = chart ?? false %}
|
|
14
14
|
|
|
15
|
-
{
|
|
16
|
-
{
|
|
15
|
+
{%- if attributes is empty %}
|
|
16
|
+
{%- set attributes = create_attribute() %}
|
|
17
17
|
{% endif %}
|
|
18
18
|
|
|
19
|
-
{
|
|
19
|
+
{%- set attributes = attributes.addClass([
|
|
20
20
|
'bcl-project-contributions',
|
|
21
21
|
'border-bottom',
|
|
22
22
|
'pb-4',
|
|
23
23
|
'mb-4'
|
|
24
|
-
])
|
|
24
|
+
]) -%}
|
|
25
25
|
|
|
26
|
-
<div {{ attributes }}>
|
|
26
|
+
<div {{ attributes }}>{# -#}
|
|
27
27
|
<div class="row">
|
|
28
28
|
|
|
29
|
-
{
|
|
29
|
+
{%- if _chart -%}
|
|
30
30
|
<div class="bcl-project-contributions-chart col-5 col-md-3">
|
|
31
|
-
{
|
|
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>
|
|
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>{# -#}
|
|
39
39
|
</div>
|
|
40
|
-
{
|
|
40
|
+
{%- endblock -%}
|
|
41
41
|
</div>
|
|
42
|
-
{
|
|
42
|
+
{%- endif %}
|
|
43
43
|
|
|
44
|
-
{
|
|
44
|
+
{%- if _legend is not empty -%}
|
|
45
45
|
<div class="bcl-project-contributions-legend col-7 col-md-9 align-self-center">
|
|
46
|
-
{
|
|
47
|
-
{
|
|
48
|
-
{
|
|
46
|
+
{%- block project_status_contrib_legend %}
|
|
47
|
+
{%- include '@oe-bcl/bcl-description-list/description-list.html.twig' with _legend only %}
|
|
48
|
+
{%- endblock -%}
|
|
49
49
|
</div>
|
|
50
|
-
{
|
|
51
|
-
</div>
|
|
50
|
+
{%- endif -%}
|
|
51
|
+
</div>{# -#}
|
|
52
52
|
</div>
|
|
53
|
-
|
|
53
|
+
{#--#}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
- attributes (drupal attrs)
|
|
11
11
|
#}
|
|
12
12
|
|
|
13
|
-
{
|
|
13
|
+
{%- set _label = label|default('') %}
|
|
14
14
|
{% set _status = status|default('planned') %}
|
|
15
15
|
{% set _badge = badge|default('') %}
|
|
16
16
|
{% set _start_date = start_date|default('') %}
|
|
@@ -19,78 +19,76 @@
|
|
|
19
19
|
{% set _end_label = end_label|default('') %}
|
|
20
20
|
{% set _progress = progress|default('') %}
|
|
21
21
|
|
|
22
|
-
{
|
|
23
|
-
{
|
|
22
|
+
{%- if attributes is empty %}
|
|
23
|
+
{%- set attributes = create_attribute() %}
|
|
24
24
|
{% endif %}
|
|
25
25
|
|
|
26
|
-
{
|
|
26
|
+
{%- set attributes = attributes.addClass([
|
|
27
27
|
'bcl-project-status',
|
|
28
28
|
'border-bottom',
|
|
29
29
|
'pb-4',
|
|
30
30
|
'mb-4'
|
|
31
31
|
]) %}
|
|
32
32
|
|
|
33
|
-
{
|
|
33
|
+
{%- set _bgs = {
|
|
34
34
|
ongoing: 'info',
|
|
35
35
|
closed: 'dark',
|
|
36
36
|
planned: 'secondary',
|
|
37
37
|
} %}
|
|
38
|
-
{% set _bg = _bgs[_status]|default('secondary')
|
|
38
|
+
{% set _bg = _bgs[_status]|default('secondary') -%}
|
|
39
39
|
|
|
40
|
-
<div {{ attributes }}>
|
|
41
|
-
<div class="row">
|
|
40
|
+
<div {{ attributes }}>{# -#}
|
|
41
|
+
<div class="row">{# -#}
|
|
42
42
|
<div class="col-12 col-md-3">
|
|
43
|
-
{
|
|
43
|
+
{%- if _label is not empty -%}
|
|
44
44
|
<p class="fw-bold">{{ _label }}</p>
|
|
45
|
-
{
|
|
45
|
+
{%- endif %}
|
|
46
46
|
|
|
47
|
-
{
|
|
48
|
-
{
|
|
47
|
+
{%- if _badge is not empty %}
|
|
48
|
+
{%- include '@oe-bcl/bcl-badge/badge.html.twig' with {
|
|
49
49
|
label: _badge,
|
|
50
50
|
rounded_pill: true,
|
|
51
51
|
background: _bg,
|
|
52
52
|
attributes: create_attribute().addClass(['mb-3', 'mb-md-0']),
|
|
53
53
|
} only %}
|
|
54
|
-
{
|
|
54
|
+
{%- endif -%}
|
|
55
55
|
|
|
56
|
-
</div>
|
|
56
|
+
</div>{# -#}
|
|
57
57
|
|
|
58
|
-
<div class="col-12 col-md-9">
|
|
58
|
+
<div class="col-12 col-md-9">{# -#}
|
|
59
59
|
<div class="d-flex justify-content-between">
|
|
60
60
|
|
|
61
|
-
{
|
|
61
|
+
{%- if _start_date is not empty and _start_label is not empty -%}
|
|
62
62
|
<p class="fw-bold">
|
|
63
|
-
{{- _start_label -}} <br>
|
|
63
|
+
{{- _start_label -}} <br>{# -#}
|
|
64
64
|
<span class="fw-normal">
|
|
65
65
|
{{- _start_date -}}
|
|
66
|
-
</span>
|
|
66
|
+
</span>{# -#}
|
|
67
67
|
</p>
|
|
68
|
-
{
|
|
68
|
+
{%- endif %}
|
|
69
69
|
|
|
70
|
-
{
|
|
70
|
+
{%- if _end_date is not empty and _end_label is not empty -%}
|
|
71
71
|
<p class="fw-bold text-end">
|
|
72
|
-
{{- _end_label -}} <br>
|
|
72
|
+
{{- _end_label -}} <br>{# -#}
|
|
73
73
|
<span class="fw-normal">
|
|
74
74
|
{{- _end_date -}}
|
|
75
|
-
</span>
|
|
75
|
+
</span>{# -#}
|
|
76
76
|
</p>
|
|
77
|
-
{
|
|
77
|
+
{%- endif -%}
|
|
78
78
|
</div>
|
|
79
79
|
|
|
80
|
-
{
|
|
81
|
-
{
|
|
82
|
-
{
|
|
83
|
-
{
|
|
84
|
-
{
|
|
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 {
|
|
85
85
|
variant: _bg,
|
|
86
86
|
hidden_label: true,
|
|
87
87
|
progress: _progress,
|
|
88
88
|
} only %}
|
|
89
|
-
{
|
|
89
|
+
{%- endif -%}
|
|
90
90
|
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
91
|
+
</div>{# -#}
|
|
92
|
+
</div>{# -#}
|
|
93
93
|
</div>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
{#--#}
|
|
@@ -19,24 +19,24 @@
|
|
|
19
19
|
]
|
|
20
20
|
#}
|
|
21
21
|
|
|
22
|
-
{
|
|
22
|
+
{%- set _activities = activities|default([]) %}
|
|
23
23
|
|
|
24
|
-
{
|
|
25
|
-
{
|
|
26
|
-
{% endif
|
|
24
|
+
{%- if attributes is empty %}
|
|
25
|
+
{%- set attributes = create_attribute() %}
|
|
26
|
+
{% endif -%}
|
|
27
27
|
|
|
28
|
-
<div
|
|
28
|
+
<div
|
|
29
29
|
{{ attributes }}
|
|
30
30
|
>
|
|
31
|
-
{
|
|
32
|
-
{
|
|
31
|
+
{%- if _activities is not empty and _activities is iterable %}
|
|
32
|
+
{%- for _activity in _activities -%}
|
|
33
33
|
<div class="d-flex bg-lighter py-3 px-3 px-md-3-5 mb-3-5 rounded-2">
|
|
34
|
-
{
|
|
34
|
+
{%- if _activity.image is not empty -%}
|
|
35
35
|
<div>
|
|
36
36
|
{{- _activity.image -}}
|
|
37
37
|
</div>
|
|
38
|
-
{
|
|
39
|
-
{
|
|
38
|
+
{%- endif %}
|
|
39
|
+
{%- if _activity.content is not empty and _activity.meta is not empty -%}
|
|
40
40
|
<div>
|
|
41
41
|
{%- if _activity.content is not empty -%}
|
|
42
42
|
<p class="mb-2">{{- _activity.content -}}</p>
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
</div>
|
|
55
55
|
{%- endif -%}
|
|
56
56
|
</div>
|
|
57
|
-
{
|
|
58
|
-
{% endif
|
|
57
|
+
{%- endfor %}
|
|
58
|
+
{% endif -%}
|
|
59
59
|
</div>
|
|
60
|
-
|
|
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 -%}
|
|
@@ -7,44 +7,44 @@
|
|
|
7
7
|
]
|
|
8
8
|
#}
|
|
9
9
|
|
|
10
|
-
{
|
|
10
|
+
{%- set _pill = pill ?? false %}
|
|
11
11
|
{% set _icon = icon|default({}) %}
|
|
12
12
|
{% set _submit = submit|default({}) %}
|
|
13
13
|
{% set _input = input|default({}) %}
|
|
14
14
|
|
|
15
|
-
{
|
|
15
|
+
{%- set _classes = ['bcl-search-form'] %}
|
|
16
16
|
|
|
17
|
-
{
|
|
18
|
-
{
|
|
17
|
+
{%- if _pill %}
|
|
18
|
+
{%- set _classes = _classes|merge(['rounded']) %}
|
|
19
19
|
{% endif %}
|
|
20
20
|
|
|
21
|
-
{
|
|
22
|
-
{
|
|
21
|
+
{%- if _submit is not empty %}
|
|
22
|
+
{%- set _classes = _classes|merge(['submittable']) %}
|
|
23
23
|
{% endif %}
|
|
24
24
|
|
|
25
|
-
{
|
|
26
|
-
{
|
|
25
|
+
{%- if _icon is not empty %}
|
|
26
|
+
{%- set _input = _input|merge({
|
|
27
27
|
attributes: _input.attributes.addClass("ps-5")
|
|
28
28
|
}) %}
|
|
29
29
|
{% endif %}
|
|
30
30
|
|
|
31
|
-
{
|
|
32
|
-
{
|
|
31
|
+
{%- if attributes is empty %}
|
|
32
|
+
{%- set attributes = create_attribute() %}
|
|
33
33
|
{% endif %}
|
|
34
34
|
|
|
35
|
-
{
|
|
35
|
+
{%- set attributes = attributes.addClass( _classes ) -%}
|
|
36
36
|
|
|
37
37
|
<form
|
|
38
38
|
{{ attributes }}
|
|
39
|
-
>
|
|
39
|
+
>{# -#}
|
|
40
40
|
<div class="bcl-search-form__group">
|
|
41
|
-
{
|
|
42
|
-
{
|
|
43
|
-
{
|
|
44
|
-
{
|
|
45
|
-
{
|
|
46
|
-
{
|
|
47
|
-
{
|
|
48
|
-
</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>{# -#}
|
|
49
49
|
</form>
|
|
50
|
-
|
|
50
|
+
{#--#}
|