Skip to content

Commit

Permalink
fix: added label for organizzatore esterno field (#629)
Browse files Browse the repository at this point in the history
* fix: added label for organizzatore esterno field

* fix: added translations

---------

Co-authored-by: Piero Nicolli <[email protected]>
  • Loading branch information
sabrina-bongiovanni and pnicolli authored Apr 8, 2024
1 parent c77afc6 commit b2c4e2d
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 3 deletions.
8 changes: 8 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@
- Le opzioni del menu a tendina per il filtro luogo nel blocco Ricerca Eventi sono ordinate alfabeticamente
- Migliorati gli stili per la stampa del CT pagina.

### Novità

- ...

### Fix

- Aggiunto il titolo per la sezione "Organizzatore esterno" quando il campo è compilato nel tipo di contenuto Evento.

## Versione 11.9.1 (03/04/2024)

### Fix
Expand Down
5 changes: 5 additions & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2743,6 +2743,11 @@ msgstr ""
msgid "organizzato_da"
msgstr ""

#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
# defaultMessage: Organizzatore
msgid "organizzatore"
msgstr ""

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
#: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
# defaultMessage: Organo competente adozione provvedimento finale
Expand Down
7 changes: 6 additions & 1 deletion locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2726,7 +2726,12 @@ msgstr "Order by"
#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreInterno
# defaultMessage: Organizzato da
msgid "organizzato_da"
msgstr ""
msgstr "Organized by"

#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
# defaultMessage: Organizzatore
msgid "organizzatore"
msgstr "Organizer"

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
#: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
Expand Down
5 changes: 5 additions & 0 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2737,6 +2737,11 @@ msgstr "Ordenado por"
msgid "organizzato_da"
msgstr ""

#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
# defaultMessage: Organizzatore
msgid "organizzatore"
msgstr ""

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
#: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
# defaultMessage: Organo competente adozione provvedimento finale
Expand Down
5 changes: 5 additions & 0 deletions locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2745,6 +2745,11 @@ msgstr "Trier par"
msgid "organizzato_da"
msgstr ""

#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
# defaultMessage: Organizzatore
msgid "organizzatore"
msgstr ""

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
#: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
# defaultMessage: Organo competente adozione provvedimento finale
Expand Down
5 changes: 5 additions & 0 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2728,6 +2728,11 @@ msgstr "Ordina per"
msgid "organizzato_da"
msgstr "Organizzato da"

#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
# defaultMessage: Organizzatore
msgid "organizzatore"
msgstr ""

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
#: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
# defaultMessage: Organo competente adozione provvedimento finale
Expand Down
7 changes: 6 additions & 1 deletion locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2024-04-03T08:27:02.322Z\n"
"POT-Creation-Date: 2024-04-03T13:54:10.953Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -2730,6 +2730,11 @@ msgstr ""
msgid "organizzato_da"
msgstr ""

#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
# defaultMessage: Organizzatore
msgid "organizzatore"
msgstr ""

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
#: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
# defaultMessage: Organo competente adozione provvedimento finale
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
import PropTypes from 'prop-types';
import { defineMessages, useIntl } from 'react-intl';
import { Card, CardBody } from 'design-react-kit';
import {
RichText,
richTextHasContent,
ContactLink,
} from 'design-comuni-plone-theme/components/ItaliaTheme/View';

const messages = defineMessages({
organizzatore: {
id: 'organizzatore',
defaultMessage: 'Organizzatore',
},
});

const EventoContattiOrganizzatoreEsterno = ({ content }) => {
const intl = useIntl();

return richTextHasContent(content?.organizzato_da_esterno) ||
content?.telefono ||
content?.email ||
content?.fax ? (
<div className="mb-5">
<div className="mb-5 mt-3">
<h3 className="h5">{intl.formatMessage(messages.organizzatore)}</h3>
<Card
className="card card-teaser rounded shadow mt-3"
noWrapper={true}
Expand Down

0 comments on commit b2c4e2d

Please sign in to comment.