diff --git a/CHANGELOG.md b/CHANGELOG.md index 332d80b6c..44faf518c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ +## [10.3.0](https://github.com/redturtle/design-comuni-plone-theme/compare/v10.2.2...v10.3.0) (2023-11-08) + + +### Features + +* new BandoStatus component to manage the current status translations ([#390](https://github.com/redturtle/design-comuni-plone-theme/issues/390)) ([4f0f775](https://github.com/redturtle/design-comuni-plone-theme/commit/4f0f775e99572152f359c3dd6b227601ebffcdd9)) + + +### Bug Fixes + +* updated tipologia_bando data in Bando listing template ([#393](https://github.com/redturtle/design-comuni-plone-theme/issues/393)) ([6f38934](https://github.com/redturtle/design-comuni-plone-theme/commit/6f3893457c10035cfc17bede816b91fcbeae93d7)) + + +### Maintenance + +* preparing release ([73632c8](https://github.com/redturtle/design-comuni-plone-theme/commit/73632c832a5f7ad350d407cb2bfe5723d193730b)) +* Update RELEASE.md ([#394](https://github.com/redturtle/design-comuni-plone-theme/issues/394)) ([0da8790](https://github.com/redturtle/design-comuni-plone-theme/commit/0da8790b5238ade33a491894d98c06f2813e8993)) + ## [10.2.2](https://github.com/redturtle/design-comuni-plone-theme/compare/v10.2.1...v10.2.2) (2023-11-07) diff --git a/RELEASE.md b/RELEASE.md index 2df991030..fde6bc2ac 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -41,12 +41,19 @@ - ... --> -## Versione x.x.x (xx/xx/xxxx) +## Versione X.X.X (dd/mm/yyyy) -### Fix +### Novità +- Aggiunta la possibilità di selezionare la dimensione dell'immagine nel blocco Alert, inoltre è stato aggiornato anche il widget per la selezione del colore di sfondo. - Aggiunte le breadcrumbs nella pagina dei risultati della ricerca +## Versione 10.3.0 (08/11/2023) + +### Fix + +- Sistemata la visualizzazione della tipologia del bando nel template del blocco elenco 'Bandi' + ## Versione 10.2.0 (06/11/2023) ### Novità diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index b1f871f01..dff3739c8 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -86,6 +86,7 @@ msgstr "" msgid "CardImageRight" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar #: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar # defaultMessage: Dimensione immagine msgid "CardImageSize" @@ -133,21 +134,6 @@ msgstr "" msgid "Color" msgstr "" -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Rosso -msgid "Color_danger" -msgstr "" - -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Giallo -msgid "Color_warning" -msgstr "" - -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Arancione -msgid "Color_warning_orange" -msgstr "" - #: components/ItaliaTheme/View/EventoView/EventoContatti # defaultMessage: Contatti msgid "Contatti" @@ -1011,8 +997,7 @@ msgstr "" msgid "bandi_search_no_filters" msgstr "" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Scaduto msgid "bando_closed" msgstr "" @@ -1022,7 +1007,7 @@ msgstr "" msgid "bando_data_pubblicazione" msgstr "" -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextDestinatari # defaultMessage: Destinatari del bando msgid "bando_destinatari" msgstr "" @@ -1033,19 +1018,17 @@ msgid "bando_effective" msgstr "" #: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextEnte # defaultMessage: Ente msgid "bando_ente" msgstr "" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: In corso msgid "bando_inProgress" msgstr "" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Attivo msgid "bando_open" msgstr "" @@ -1055,8 +1038,7 @@ msgstr "" msgid "bando_scadenza" msgstr "" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Programmato msgid "bando_scheduled" msgstr "" @@ -1221,6 +1203,16 @@ msgstr "" msgid "codice_ipa" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Rosso +msgid "color_danger" +msgstr "" + +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Arancione +msgid "color_orange" +msgstr "" + #: components/ItaliaTheme/Blocks/ContactsBlock/Sidebar #: components/ItaliaTheme/Blocks/HighlightedContent/Sidebar # defaultMessage: Primario @@ -1232,6 +1224,11 @@ msgstr "" msgid "color_transparent" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Giallo +msgid "color_warning" +msgstr "" + #: components/ItaliaTheme/View/IncaricoView/IncaricoView #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti #: components/ItaliaTheme/View/PersonaView/PersonaRuolo @@ -3758,7 +3755,7 @@ msgstr "" msgid "timeline_tempi_scadenze_validation_error" msgstr "" -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextTipologia # defaultMessage: Tipologia del bando msgid "tipologia_bando" msgstr "" diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index 28aeee93e..28b89ea8d 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -71,6 +71,7 @@ msgstr "Show" msgid "CardImageRight" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar #: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar # defaultMessage: Dimensione immagine msgid "CardImageSize" @@ -118,21 +119,6 @@ msgstr "Click here to replace file" msgid "Color" msgstr "" -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Rosso -msgid "Color_danger" -msgstr "" - -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Giallo -msgid "Color_warning" -msgstr "" - -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Arancione -msgid "Color_warning_orange" -msgstr "" - #: components/ItaliaTheme/View/EventoView/EventoContatti # defaultMessage: Contatti msgid "Contatti" @@ -996,8 +982,7 @@ msgstr "" msgid "bandi_search_no_filters" msgstr "" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Scaduto msgid "bando_closed" msgstr "Expired" @@ -1007,7 +992,7 @@ msgstr "Expired" msgid "bando_data_pubblicazione" msgstr "Publication date" -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextDestinatari # defaultMessage: Destinatari del bando msgid "bando_destinatari" msgstr "Recipients of the competition notice" @@ -1018,19 +1003,17 @@ msgid "bando_effective" msgstr "Publication date" #: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextEnte # defaultMessage: Ente msgid "bando_ente" msgstr "Supplying authority" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: In corso msgid "bando_inProgress" msgstr "In progress" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Attivo msgid "bando_open" msgstr "Active" @@ -1040,8 +1023,7 @@ msgstr "Active" msgid "bando_scadenza" msgstr "Expiration date:" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Programmato msgid "bando_scheduled" msgstr "Scheduled" @@ -1206,6 +1188,16 @@ msgstr "Close search" msgid "codice_ipa" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Rosso +msgid "color_danger" +msgstr "" + +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Arancione +msgid "color_orange" +msgstr "" + #: components/ItaliaTheme/Blocks/ContactsBlock/Sidebar #: components/ItaliaTheme/Blocks/HighlightedContent/Sidebar # defaultMessage: Primario @@ -1217,6 +1209,11 @@ msgstr "" msgid "color_transparent" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Giallo +msgid "color_warning" +msgstr "" + #: components/ItaliaTheme/View/IncaricoView/IncaricoView #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti #: components/ItaliaTheme/View/PersonaView/PersonaRuolo @@ -3743,7 +3740,7 @@ msgstr "Insert a value" msgid "timeline_tempi_scadenze_validation_error" msgstr "" -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextTipologia # defaultMessage: Tipologia del bando msgid "tipologia_bando" msgstr "Type of call" diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index 2229f170f..a93c937aa 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -80,6 +80,7 @@ msgstr "Ver" msgid "CardImageRight" msgstr "Alinear imagen a la derecha" +#: components/ItaliaTheme/Blocks/Alert/Sidebar #: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar # defaultMessage: Dimensione immagine msgid "CardImageSize" @@ -127,21 +128,6 @@ msgstr "Haga clic aquí para reemplazar el archivo" msgid "Color" msgstr "Color" -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Rosso -msgid "Color_danger" -msgstr "" - -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Giallo -msgid "Color_warning" -msgstr "" - -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Arancione -msgid "Color_warning_orange" -msgstr "" - #: components/ItaliaTheme/View/EventoView/EventoContatti # defaultMessage: Contatti msgid "Contatti" @@ -1005,8 +991,7 @@ msgstr "Fondo de bloque" msgid "bandi_search_no_filters" msgstr "No hay filtros para mostrar. Seleccione yo filtros de búsqueda para mostrar desde la barra lateral." -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Scaduto msgid "bando_closed" msgstr "Expirado" @@ -1016,7 +1001,7 @@ msgstr "Expirado" msgid "bando_data_pubblicazione" msgstr "Fecha de publicación" -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextDestinatari # defaultMessage: Destinatari del bando msgid "bando_destinatari" msgstr "Destinatarios del anuncio de concurso" @@ -1027,19 +1012,17 @@ msgid "bando_effective" msgstr "Fecha de publicación" #: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextEnte # defaultMessage: Ente msgid "bando_ente" msgstr "Autoridad proveedora" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: In corso msgid "bando_inProgress" msgstr "En progreso" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Attivo msgid "bando_open" msgstr "Activar" @@ -1049,8 +1032,7 @@ msgstr "Activar" msgid "bando_scadenza" msgstr "Fecha de expiración:" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Programmato msgid "bando_scheduled" msgstr "Programado" @@ -1215,6 +1197,16 @@ msgstr "Cerrar búsqueda" msgid "codice_ipa" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Rosso +msgid "color_danger" +msgstr "" + +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Arancione +msgid "color_orange" +msgstr "" + #: components/ItaliaTheme/Blocks/ContactsBlock/Sidebar #: components/ItaliaTheme/Blocks/HighlightedContent/Sidebar # defaultMessage: Primario @@ -1226,6 +1218,11 @@ msgstr "Primario" msgid "color_transparent" msgstr "Transparente" +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Giallo +msgid "color_warning" +msgstr "" + #: components/ItaliaTheme/View/IncaricoView/IncaricoView #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti #: components/ItaliaTheme/View/PersonaView/PersonaRuolo @@ -3752,7 +3749,7 @@ msgstr "Insertar un valor" msgid "timeline_tempi_scadenze_validation_error" msgstr "" -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextTipologia # defaultMessage: Tipologia del bando msgid "tipologia_bando" msgstr "Tipo de llamada" diff --git a/locales/fr/LC_MESSAGES/volto.po b/locales/fr/LC_MESSAGES/volto.po index d84be7746..67cdf6a9e 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -88,6 +88,7 @@ msgstr "Voir" msgid "CardImageRight" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar #: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar # defaultMessage: Dimensione immagine msgid "CardImageSize" @@ -135,21 +136,6 @@ msgstr "Cliquez ici pour remplacer le fichier" msgid "Color" msgstr "" -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Rosso -msgid "Color_danger" -msgstr "" - -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Giallo -msgid "Color_warning" -msgstr "" - -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Arancione -msgid "Color_warning_orange" -msgstr "" - #: components/ItaliaTheme/View/EventoView/EventoContatti # defaultMessage: Contatti msgid "Contatti" @@ -1013,8 +999,7 @@ msgstr "" msgid "bandi_search_no_filters" msgstr "" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Scaduto msgid "bando_closed" msgstr "Expiré" @@ -1024,7 +1009,7 @@ msgstr "Expiré" msgid "bando_data_pubblicazione" msgstr "Date de publication" -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextDestinatari # defaultMessage: Destinatari del bando msgid "bando_destinatari" msgstr "Destinataires d'appels" @@ -1035,19 +1020,17 @@ msgid "bando_effective" msgstr "Date de publication" #: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextEnte # defaultMessage: Ente msgid "bando_ente" msgstr "Autorité fournisseur" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: In corso msgid "bando_inProgress" msgstr "En cours" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Attivo msgid "bando_open" msgstr "Actif" @@ -1057,8 +1040,7 @@ msgstr "Actif" msgid "bando_scadenza" msgstr "Date d'expiration" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Programmato msgid "bando_scheduled" msgstr "" @@ -1223,6 +1205,16 @@ msgstr "Fermer la recherche" msgid "codice_ipa" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Rosso +msgid "color_danger" +msgstr "" + +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Arancione +msgid "color_orange" +msgstr "" + #: components/ItaliaTheme/Blocks/ContactsBlock/Sidebar #: components/ItaliaTheme/Blocks/HighlightedContent/Sidebar # defaultMessage: Primario @@ -1234,6 +1226,11 @@ msgstr "" msgid "color_transparent" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Giallo +msgid "color_warning" +msgstr "" + #: components/ItaliaTheme/View/IncaricoView/IncaricoView #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti #: components/ItaliaTheme/View/PersonaView/PersonaRuolo @@ -3760,7 +3757,7 @@ msgstr "Entrez du texte" msgid "timeline_tempi_scadenze_validation_error" msgstr "" -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextTipologia # defaultMessage: Tipologia del bando msgid "tipologia_bando" msgstr "Type d'appel" diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index e6216897f..2dc6326d0 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -71,6 +71,7 @@ msgstr "Vedi" msgid "CardImageRight" msgstr "Allinea immagine a destra" +#: components/ItaliaTheme/Blocks/Alert/Sidebar #: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar # defaultMessage: Dimensione immagine msgid "CardImageSize" @@ -118,21 +119,6 @@ msgstr "Clicca qui per sostituire il file" msgid "Color" msgstr "Colore" -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Rosso -msgid "Color_danger" -msgstr "Rosso" - -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Giallo -msgid "Color_warning" -msgstr "Giallo" - -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Arancione -msgid "Color_warning_orange" -msgstr "Arancione" - #: components/ItaliaTheme/View/EventoView/EventoContatti # defaultMessage: Contatti msgid "Contatti" @@ -996,8 +982,7 @@ msgstr "Sfondo del blocco" msgid "bandi_search_no_filters" msgstr "Nessun filtro da mostrare. Seleziona i filtri di ricerca da mostrare dalla sidebar laterale." -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Scaduto msgid "bando_closed" msgstr "Scaduto" @@ -1007,7 +992,7 @@ msgstr "Scaduto" msgid "bando_data_pubblicazione" msgstr "Pubblicato il" -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextDestinatari # defaultMessage: Destinatari del bando msgid "bando_destinatari" msgstr "Destinatari del bando" @@ -1018,19 +1003,17 @@ msgid "bando_effective" msgstr "Data di pubblicazione" #: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextEnte # defaultMessage: Ente msgid "bando_ente" msgstr "Ente erogatore" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: In corso msgid "bando_inProgress" msgstr "In corso" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Attivo msgid "bando_open" msgstr "Attivo" @@ -1040,8 +1023,7 @@ msgstr "Attivo" msgid "bando_scadenza" msgstr "Scadenza partecipazione" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Programmato msgid "bando_scheduled" msgstr "Programmato" @@ -1206,6 +1188,16 @@ msgstr "Chiudi ricerca" msgid "codice_ipa" msgstr "Codice dell'ente erogatore (ipa)" +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Rosso +msgid "color_danger" +msgstr "" + +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Arancione +msgid "color_orange" +msgstr "" + #: components/ItaliaTheme/Blocks/ContactsBlock/Sidebar #: components/ItaliaTheme/Blocks/HighlightedContent/Sidebar # defaultMessage: Primario @@ -1217,6 +1209,11 @@ msgstr "Colore primario" msgid "color_transparent" msgstr "Trasparente" +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Giallo +msgid "color_warning" +msgstr "" + #: components/ItaliaTheme/View/IncaricoView/IncaricoView #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti #: components/ItaliaTheme/View/PersonaView/PersonaRuolo @@ -3743,7 +3740,7 @@ msgstr "Inserisci un valore" msgid "timeline_tempi_scadenze_validation_error" msgstr "" -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextTipologia # defaultMessage: Tipologia del bando msgid "tipologia_bando" msgstr "Tipologia del bando" diff --git a/locales/volto.pot b/locales/volto.pot index 28b381bc1..81ddc90cf 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -73,6 +73,7 @@ msgstr "" msgid "CardImageRight" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar #: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar # defaultMessage: Dimensione immagine msgid "CardImageSize" @@ -120,21 +121,6 @@ msgstr "" msgid "Color" msgstr "" -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Rosso -msgid "Color_danger" -msgstr "" - -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Giallo -msgid "Color_warning" -msgstr "" - -#: components/ItaliaTheme/Blocks/Alert/Sidebar -# defaultMessage: Arancione -msgid "Color_warning_orange" -msgstr "" - #: components/ItaliaTheme/View/EventoView/EventoContatti # defaultMessage: Contatti msgid "Contatti" @@ -998,8 +984,7 @@ msgstr "" msgid "bandi_search_no_filters" msgstr "" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Scaduto msgid "bando_closed" msgstr "" @@ -1009,7 +994,7 @@ msgstr "" msgid "bando_data_pubblicazione" msgstr "" -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextDestinatari # defaultMessage: Destinatari del bando msgid "bando_destinatari" msgstr "" @@ -1020,19 +1005,17 @@ msgid "bando_effective" msgstr "" #: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextEnte # defaultMessage: Ente msgid "bando_ente" msgstr "" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: In corso msgid "bando_inProgress" msgstr "" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Attivo msgid "bando_open" msgstr "" @@ -1042,8 +1025,7 @@ msgstr "" msgid "bando_scadenza" msgstr "" -#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate -#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando +#: components/ItaliaTheme/View/Commons/BandoStatus # defaultMessage: Programmato msgid "bando_scheduled" msgstr "" @@ -1208,6 +1190,16 @@ msgstr "" msgid "codice_ipa" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Rosso +msgid "color_danger" +msgstr "" + +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Arancione +msgid "color_orange" +msgstr "" + #: components/ItaliaTheme/Blocks/ContactsBlock/Sidebar #: components/ItaliaTheme/Blocks/HighlightedContent/Sidebar # defaultMessage: Primario @@ -1219,6 +1211,11 @@ msgstr "" msgid "color_transparent" msgstr "" +#: components/ItaliaTheme/Blocks/Alert/Sidebar +# defaultMessage: Giallo +msgid "color_warning" +msgstr "" + #: components/ItaliaTheme/View/IncaricoView/IncaricoView #: components/ItaliaTheme/View/PersonaView/PersonaDocumenti #: components/ItaliaTheme/View/PersonaView/PersonaRuolo @@ -3745,7 +3742,7 @@ msgstr "" msgid "timeline_tempi_scadenze_validation_error" msgstr "" -#: components/ItaliaTheme/View/BandoView/BandoText +#: components/ItaliaTheme/View/BandoView/BandoTextTipologia # defaultMessage: Tipologia del bando msgid "tipologia_bando" msgstr "" diff --git a/package.json b/package.json index 74360c216..93eb5b070 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "design-comuni-plone-theme", "description": "Volto Theme for Italia design guidelines", "license": "GPL-v3", - "version": "10.2.2", + "version": "10.3.0", "main": "src/index.js", "keywords": [ "volto-addon", diff --git a/publiccode.yml b/publiccode.yml index a6683a99a..3de90f065 100644 --- a/publiccode.yml +++ b/publiccode.yml @@ -229,7 +229,7 @@ platforms: - web releaseDate: '2023-11-07' softwareType: standalone/web -softwareVersion: 10.2.2 +softwareVersion: 10.3.0 url: 'https://github.com/italia/design-comuni-plone-theme' usedBy: - ASP Comuni Modenesi Area Nord diff --git a/src/components/ItaliaTheme/Blocks/Alert/Edit.jsx b/src/components/ItaliaTheme/Blocks/Alert/Edit.jsx index f84612fc0..f8c7d261b 100644 --- a/src/components/ItaliaTheme/Blocks/Alert/Edit.jsx +++ b/src/components/ItaliaTheme/Blocks/Alert/Edit.jsx @@ -59,8 +59,8 @@ class Edit extends Component { constructor(props) { super(props); - if (!this.props.data.color) { - this.props.data.color = 'warning'; + if (!this.props.data.bg_color) { + this.props.data.bg_color = 'warning'; } this.blockNode = React.createRef(); } @@ -78,8 +78,8 @@ class Edit extends Component { > @@ -89,7 +89,11 @@ class Edit extends Component { )} diff --git a/src/components/ItaliaTheme/Blocks/Alert/Sidebar.jsx b/src/components/ItaliaTheme/Blocks/Alert/Sidebar.jsx index a852980a0..8d3a6042c 100644 --- a/src/components/ItaliaTheme/Blocks/Alert/Sidebar.jsx +++ b/src/components/ItaliaTheme/Blocks/Alert/Sidebar.jsx @@ -1,31 +1,36 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import { Form } from 'semantic-ui-react'; -import { Button, Grid, Segment } from 'semantic-ui-react'; +import { Segment } from 'semantic-ui-react'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; import { FileWidget } from '@plone/volto/components'; +import { ColorListWidget } from 'design-comuni-plone-theme/components/ItaliaTheme'; +import ImageSizeWidget from '@plone/volto/components/manage/Widgets/ImageSizeWidget'; const messages = defineMessages({ Color: { id: 'Color', defaultMessage: 'Colore', }, - Color_warning: { - id: 'Color_warning', + color_warning: { + id: 'color_warning', defaultMessage: 'Giallo', }, - Color_warning_orange: { - id: 'Color_warning_orange', + color_orange: { + id: 'color_orange', defaultMessage: 'Arancione', }, - Color_danger: { - id: 'Color_danger', + color_danger: { + id: 'color_danger', defaultMessage: 'Rosso', }, Image: { id: 'Image', defaultMessage: 'Immagine', }, + CardImageSize: { + id: 'CardImageSize', + defaultMessage: 'Dimensione immagine', + }, }); class Sidebar extends Component { @@ -37,6 +42,21 @@ class Sidebar extends Component { }; render() { + const bg_colors = [ + { + name: 'info', + label: this.props.intl.formatMessage(messages.color_warning), + }, + { + name: 'warning', + label: this.props.intl.formatMessage(messages.color_orange), + }, + { + name: 'danger', + label: this.props.intl.formatMessage(messages.color_danger), + }, + ]; + return (
@@ -46,74 +66,18 @@ class Sidebar extends Component {
- - - - -
- -
-
- - - )} -
- {checkUrlImage ? ( - {image.title} - ) : ( - - )} -
+ + {image && ( + {image.title} + )} {items.length > 1 && (