Skip to content

Commit

Permalink
fix(views): fix offerta_formativa view
Browse files Browse the repository at this point in the history
Signed-off-by: arturu <[email protected]>
  • Loading branch information
arturu committed Mar 20, 2024
1 parent 3a76f4a commit 17d9e31
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
4 changes: 2 additions & 2 deletions composer.libraries.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"type": "package",
"package": {
"name": "ouitoulia/skenografia-dist",
"version": "1.16.2",
"version": "1.16.3",
"type": "drupal-library",
"extra": {
"installer-name": "ouitoulia-skenografia"
},
"dist": {
"url": "https://github.com/ouitoulia/skenografia/releases/download/1.16.2/skenografia.zip",
"url": "https://github.com/ouitoulia/skenografia/releases/download/1.16.3/skenografia.zip",
"type": "zip"
}
}
Expand Down
4 changes: 2 additions & 2 deletions skenografia.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ custom:

# Bootstrap-italia library if you use a CDN
cdn:
version: 1.16.2
version: 1.16.3
css:
theme:
/libraries/ouitoulia-skenografia/css/bootstrap-italia.min.css: { minified: true }
Expand All @@ -24,7 +24,7 @@ cdn:

# Skenografia toc_js custom loader
toc:
version: 1.16.2
version: 1.16.3
js:
/libraries/ouitoulia-skenografia/js/toc_js_loader.min.js: { minified: true }
#dist/js/toc_js_loader.min.js: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@
{% if rows -%}
<div class="container">
<div class="row g-0">
<div class="col-md-4 col-lg-3">
<div class="col-md-4 col-lg-3 d-flex flex-column">
<div class="nav nav-tabs nav-tabs-vertical nav-dark" id="{{ _id }}--nav" role="tablist" aria-orientation="vertical">
{% for item in rows %}
{% set _clean_title = item['#title']|render|striptags|trim|clean_id %}
{% set _nav_link_attributes = create_attribute()
.addClass([
'nav-link',
'py-4',
'py-3',
loop.first ? ' active',
])
.setAttribute('id', _id ~ '--tab-' ~ _clean_title)
Expand All @@ -98,21 +98,26 @@
</a>
{% endfor %}
</div>
<div class="mt-auto pt-5 d-none d-md-block" aria-hidden="true">
<img class="img-fluid mt-5 pe-5 pb-5" src="{{ skenografia_libraries_path }}/img/didattica-mockup.png" alt="Immagine decorativa">
</div>
</div>

<div class="col-md-8 col-lg-9 bg-bluelectric ms-0 d-flex flex-column">
<div class="tab-content ps-lg-5 mb-5" id="{{ _id }}--content">
{{ rows }}
</div>
{% include '@bi-bcl/button/button.html.twig' with {
label: 'Vai alla presentazione della scuola',
tag: 'a',
url: '/la-scuola',
variant: 'redbrown',
size: 'lg',
assistive_text: 'Vai alla pagina di presentazione della scuola',
button_classes: ['my-5', 'mx-4', 'mt-auto', 'w-auto']
}%}
<div class="mt-auto ps-5">
{% include '@bi-bcl/button/button.html.twig' with {
label: 'Vai alla presentazione della scuola',
tag: 'a',
url: '/la-scuola',
variant: 'redbrown',
size: 'lg',
assistive_text: 'Vai alla pagina di presentazione della scuola',
button_classes: ['m-5']
}%}
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 17d9e31

Please sign in to comment.