diff --git a/data.json b/data.json index e37689f..d42f167 100644 --- a/data.json +++ b/data.json @@ -7498,8 +7498,8 @@ "url": "/pages/bandi/attivita-di-supporto.html", "date": "1706619600", "status": { - "class": "open", - "label": "Aperto" + "class": "archived", + "label": "Archiviato" }, "seats": 1, "terms": [[0,[0]], [1,[0,1,2]],[2,[0,1,2]]], @@ -7577,10 +7577,7 @@ }, { "title": "Assegno di ricerca “Storicizzazione del diritto naturale e costituzione critica della libertà””", - "date": [ - "1706097600", - "1706097600" - ], + "date": "1706097600", "status": { "class": "open", "label": "Aperto" diff --git a/src/assets/css/components/cookiebanner.css b/src/assets/css/components/cookiebanner.css index a518a58..5e5a5a4 100644 --- a/src/assets/css/components/cookiebanner.css +++ b/src/assets/css/components/cookiebanner.css @@ -1,6 +1,6 @@ #cookiebanner-overlay{ transition: all .5s ease; - @apply fixed top-0 left-0 w-full h-screen bg-black bg-opacity-50 z-30 opacity-0 invisible pointer-events-none; + @apply fixed top-0 left-0 w-full h-screen bg-black bg-opacity-50 z-50 opacity-0 invisible pointer-events-none; &.is-active{ @apply opacity-100 visible pointer-events-auto; } @@ -15,7 +15,12 @@ --input-toggle-active-bg: theme(colors.white); --input-toggle-active-slider-bg: theme(colors.black); - @apply fixed bottom-0 right-0 lg:bottom-5 lg:right-5 bg-black text-white z-50 w-full lg:max-w-[640px] px-5 py-5; + max-height: 100vh; + @screen xl{ + max-height: calc(100vh - 2.5rem); + } + + @apply fixed bottom-0 right-0 lg:bottom-5 lg:right-5 bg-black text-white z-50 w-full lg:max-w-[640px] px-5 py-5 overflow-auto; p{ @apply text-white mb-0; } diff --git a/src/assets/css/components/inputs.css b/src/assets/css/components/inputs.css index 862de07..dadf6a7 100644 --- a/src/assets/css/components/inputs.css +++ b/src/assets/css/components/inputs.css @@ -111,7 +111,7 @@ --input-toggle-active-slider-bg: theme(colors.white); } .input-toggle{ - @apply inline-block w-12 h-[1.375rem] rounded-full relative overflow-hidden; + @apply inline-block w-12 h-[1.375rem] rounded-full relative overflow-hidden cursor-pointer; input{ @apply opacity-0 h-0 w-0; &:checked + span{ diff --git a/src/layout/single-tender.twig b/src/layout/single-tender.twig index 48c46c2..3cfc365 100644 --- a/src/layout/single-tender.twig +++ b/src/layout/single-tender.twig @@ -25,7 +25,7 @@
- {% if post.status.class == 'expired' or post.status.class == 'completed' %}Scaduto{% endif %} + {% if post.status.class == 'expired' or post.status.class == 'archived' or post.status.class == 'completed' %}Scaduto{% endif %} {% if post.date is iterable %}
@@ -33,7 +33,7 @@ Scadenza {{post.date[0]|date('d.m.Y, H:s')}}
{% else %} - Scadenza {{post.date|date('d.m.Y, H:s')}} + {% if post.status.class == 'open' %}Scadenza{% endif %} {{post.date|date('d.m.Y, H:s')}} {% endif %}
@@ -116,7 +116,7 @@ {% endif %}
- {% if post.status.class != 'expired' and post.status.class != 'completed' %} + {% if post.status.class != 'expired' and post.status.class != 'completed' and post.status.class != 'archived' %}
{% set tender_application_cta = { "key": "link", diff --git a/src/pages/ateneo/concorsi.twig b/src/pages/ateneo/concorsi.twig index f2374d1..ec736dd 100644 --- a/src/pages/ateneo/concorsi.twig +++ b/src/pages/ateneo/concorsi.twig @@ -14,6 +14,7 @@ {% block posts %} {% for post in post_type.tenders.items %} +
diff --git a/src/pages/ateneo/lavora-con-noi.twig b/src/pages/ateneo/lavora-con-noi.twig index 9ef9c75..abfeda8 100644 --- a/src/pages/ateneo/lavora-con-noi.twig +++ b/src/pages/ateneo/lavora-con-noi.twig @@ -54,130 +54,133 @@ {% block posts %} {% for post in post_type.tenders.items %} -
-
+ {% if post.status.class != "archived" %} +
+
-
-
- {% if post.status.class == 'expired' or post.status.class == 'completed' %}Scaduto{% endif %} +
+
+ {% if post.status.class == 'expired' or post.status.class == 'completed' %}Scaduto{% endif %} - {% if post.date is iterable %} -
- Prorogato al {{post.date[1]|date('d.m.Y, H:s')}} - Scadenza {{post.date[0]|date('d.m.Y, H:s')}} -
- {% else %} - Scadenza {{post.date|date('d.m.Y, H:s')}} - {% endif %} - -
- {{post.status.label}} -
- -
- - {{post.title}} - -
-
- - {% for id in post.terms|slice(0,1) %} - {% set parent = id[0] %} - {% set terms = id[1] %} - {% set taxonomy = taxonomies.tenders.terms[parent] %} + {% if post.date is iterable %}
-

{{taxonomy.name}}

-

- {% for term in terms %} - {% set term = taxonomies.tenders.terms[parent].items[term] %} - {{term.name}}{% if not loop.last %}, {% endif %} - {% endfor %} -

+ Prorogato al {{post.date[1]|date('d.m.Y, H:s')}} + Scadenza {{post.date[0]|date('d.m.Y, H:s')}}
- {% endfor %} -
-

Posti disponibili

-

{{post.seats}}

-
- {% for id in post.terms|slice(1) %} - {% set parent = id[0] %} - {% set terms = id[1] %} - {% set taxonomy = taxonomies.tenders.terms[parent] %} -
-

{{taxonomy.name}}

-

- {% for term in terms %} - {% set term = taxonomies.tenders.terms[parent].items[term] %} - {{term.name}}{% if not loop.last %}, {% endif %} - {% endfor %} -

-
- {% endfor %} - {% for item in post.info %} -
-

{{item.label}}

-

{{item.text}}

-
- {% endfor %} - + {% else %} + Scadenza {{post.date|date('d.m.Y, H:s')}} + {% endif %} +
+ {{post.status.label}}
+
+ + {{post.title}} + +
+
+ + {% for id in post.terms|slice(0,1) %} + {% set parent = id[0] %} + {% set terms = id[1] %} + {% set taxonomy = taxonomies.tenders.terms[parent] %} +
+

{{taxonomy.name}}

+

+ {% for term in terms %} + {% set term = taxonomies.tenders.terms[parent].items[term] %} + {{term.name}}{% if not loop.last %}, {% endif %} + {% endfor %} +

+
+ {% endfor %} +
+

Posti disponibili

+

{{post.seats}}

+
+ {% for id in post.terms|slice(1) %} + {% set parent = id[0] %} + {% set terms = id[1] %} + {% set taxonomy = taxonomies.tenders.terms[parent] %} +
+

{{taxonomy.name}}

+

+ {% for term in terms %} + {% set term = taxonomies.tenders.terms[parent].items[term] %} + {{term.name}}{% if not loop.last %}, {% endif %} + {% endfor %} +

+
+ {% endfor %} + {% for item in post.info %} +
+

{{item.label}}

+

{{item.text}}

+
+ {% endfor %} + +
+
+ +
+
+
+ {% if post.status.class == 'open' %} + {% set tender_links = { + "key": "links-list", + "classes": "block-links-list--2cols", + "links_size": "sm", + "content": { + "list": [ + { + "name": "Vedi i materiali", + "url": post.url, + }, + { + "name": "Compila la domanda", + "url": "https://www.google.com", + "external_name": "Pica" + } + ] + } + } %} + {% elseif post.status.class == 'completed' %} + {% set tender_links = { + "key": "links-list", + "classes": "", + "links_size": "sm", + "content": { + "list": [ + { + "name": "Vedi i materiali e l'esito", + "url": "#", + } + ] + } + } %} + {% else %} + {% set tender_links = { + "key": "links-list", + "classes": "", + "links_size": "sm", + "content": { + "list": [ + { + "name": "Vedi i materiali", + "url": "#", + } + ] + } + } %} + {% endif %} + + {% include "../../blocks/links-list.twig" with {'block': tender_links } %}
-
- {% if post.status.class == 'open' %} - {% set tender_links = { - "key": "links-list", - "classes": "block-links-list--2cols", - "links_size": "sm", - "content": { - "list": [ - { - "name": "Vedi i materiali", - "url": post.url, - }, - { - "name": "Compila la domanda", - "url": "https://www.google.com", - "external_name": "Pica" - } - ] - } - } %} - {% elseif post.status.class == 'completed' %} - {% set tender_links = { - "key": "links-list", - "classes": "", - "links_size": "sm", - "content": { - "list": [ - { - "name": "Vedi i materiali e l'esito", - "url": "#", - } - ] - } - } %} - {% else %} - {% set tender_links = { - "key": "links-list", - "classes": "", - "links_size": "sm", - "content": { - "list": [ - { - "name": "Vedi i materiali", - "url": "#", - } - ] - } - } %} - {% endif %} - - {% include "../../blocks/links-list.twig" with {'block': tender_links } %} -
-
+ {% endif %} + {% endfor %} {% endblock %} \ No newline at end of file diff --git a/src/pages/bandi/attivita-di-supporto.twig b/src/pages/bandi/attivita-di-supporto.twig index c6ffdbd..edadff1 100644 --- a/src/pages/bandi/attivita-di-supporto.twig +++ b/src/pages/bandi/attivita-di-supporto.twig @@ -1,3 +1,13 @@ {% set currentPost = 0 %} +{% block breadcrumbs %} + + +{% endblock %} + {% extends "../../layout/single-tender.twig" %} \ No newline at end of file