design-comuni-plone-theme 10.2.1 → 10.3.0
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/CHANGELOG.md +30 -0
- package/RELEASE.md +6 -0
- package/locales/de/LC_MESSAGES/volto.po +4 -8
- package/locales/en/LC_MESSAGES/volto.po +4 -8
- package/locales/es/LC_MESSAGES/volto.po +4 -8
- package/locales/fr/LC_MESSAGES/volto.po +4 -8
- package/locales/it/LC_MESSAGES/volto.po +4 -8
- package/locales/volto.pot +5 -9
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/src/components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate.jsx +5 -20
- package/src/components/ItaliaTheme/View/Commons/BandoStatus.jsx +38 -0
- package/src/components/ItaliaTheme/View/Commons/Metadata.jsx +2 -2
- package/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando.jsx +3 -17
- package/src/components/ItaliaTheme/View/index.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [10.3.0](https://github.com/redturtle/design-comuni-plone-theme/compare/v10.2.2...v10.3.0) (2023-11-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* 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))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* 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))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Maintenance
|
|
17
|
+
|
|
18
|
+
* preparing release ([73632c8](https://github.com/redturtle/design-comuni-plone-theme/commit/73632c832a5f7ad350d407cb2bfe5723d193730b))
|
|
19
|
+
* 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))
|
|
20
|
+
|
|
21
|
+
## [10.2.2](https://github.com/redturtle/design-comuni-plone-theme/compare/v10.2.1...v10.2.2) (2023-11-07)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* header Metadata to h2 ([d2952b7](https://github.com/redturtle/design-comuni-plone-theme/commit/d2952b781df8b7e42f9e8c48999aa9f79538081e))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Maintenance
|
|
30
|
+
|
|
31
|
+
* preparing release ([6b70a73](https://github.com/redturtle/design-comuni-plone-theme/commit/6b70a739835175b39478156d29a6f144b1ecb9ae))
|
|
32
|
+
|
|
3
33
|
## [10.2.1](https://github.com/redturtle/design-comuni-plone-theme/compare/v10.2.0...v10.2.1) (2023-11-06)
|
|
4
34
|
|
|
5
35
|
|
package/RELEASE.md
CHANGED
|
@@ -1011,8 +1011,7 @@ msgstr ""
|
|
|
1011
1011
|
msgid "bandi_search_no_filters"
|
|
1012
1012
|
msgstr ""
|
|
1013
1013
|
|
|
1014
|
-
#: components/ItaliaTheme/
|
|
1015
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1014
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1016
1015
|
# defaultMessage: Scaduto
|
|
1017
1016
|
msgid "bando_closed"
|
|
1018
1017
|
msgstr ""
|
|
@@ -1038,14 +1037,12 @@ msgstr ""
|
|
|
1038
1037
|
msgid "bando_ente"
|
|
1039
1038
|
msgstr ""
|
|
1040
1039
|
|
|
1041
|
-
#: components/ItaliaTheme/
|
|
1042
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1040
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1043
1041
|
# defaultMessage: In corso
|
|
1044
1042
|
msgid "bando_inProgress"
|
|
1045
1043
|
msgstr ""
|
|
1046
1044
|
|
|
1047
|
-
#: components/ItaliaTheme/
|
|
1048
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1045
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1049
1046
|
# defaultMessage: Attivo
|
|
1050
1047
|
msgid "bando_open"
|
|
1051
1048
|
msgstr ""
|
|
@@ -1055,8 +1052,7 @@ msgstr ""
|
|
|
1055
1052
|
msgid "bando_scadenza"
|
|
1056
1053
|
msgstr ""
|
|
1057
1054
|
|
|
1058
|
-
#: components/ItaliaTheme/
|
|
1059
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1055
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1060
1056
|
# defaultMessage: Programmato
|
|
1061
1057
|
msgid "bando_scheduled"
|
|
1062
1058
|
msgstr ""
|
|
@@ -996,8 +996,7 @@ msgstr ""
|
|
|
996
996
|
msgid "bandi_search_no_filters"
|
|
997
997
|
msgstr ""
|
|
998
998
|
|
|
999
|
-
#: components/ItaliaTheme/
|
|
1000
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
999
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1001
1000
|
# defaultMessage: Scaduto
|
|
1002
1001
|
msgid "bando_closed"
|
|
1003
1002
|
msgstr "Expired"
|
|
@@ -1023,14 +1022,12 @@ msgstr "Publication date"
|
|
|
1023
1022
|
msgid "bando_ente"
|
|
1024
1023
|
msgstr "Supplying authority"
|
|
1025
1024
|
|
|
1026
|
-
#: components/ItaliaTheme/
|
|
1027
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1025
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1028
1026
|
# defaultMessage: In corso
|
|
1029
1027
|
msgid "bando_inProgress"
|
|
1030
1028
|
msgstr "In progress"
|
|
1031
1029
|
|
|
1032
|
-
#: components/ItaliaTheme/
|
|
1033
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1030
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1034
1031
|
# defaultMessage: Attivo
|
|
1035
1032
|
msgid "bando_open"
|
|
1036
1033
|
msgstr "Active"
|
|
@@ -1040,8 +1037,7 @@ msgstr "Active"
|
|
|
1040
1037
|
msgid "bando_scadenza"
|
|
1041
1038
|
msgstr "Expiration date:"
|
|
1042
1039
|
|
|
1043
|
-
#: components/ItaliaTheme/
|
|
1044
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1040
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1045
1041
|
# defaultMessage: Programmato
|
|
1046
1042
|
msgid "bando_scheduled"
|
|
1047
1043
|
msgstr "Scheduled"
|
|
@@ -1005,8 +1005,7 @@ msgstr "Fondo de bloque"
|
|
|
1005
1005
|
msgid "bandi_search_no_filters"
|
|
1006
1006
|
msgstr "No hay filtros para mostrar. Seleccione yo filtros de búsqueda para mostrar desde la barra lateral."
|
|
1007
1007
|
|
|
1008
|
-
#: components/ItaliaTheme/
|
|
1009
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1008
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1010
1009
|
# defaultMessage: Scaduto
|
|
1011
1010
|
msgid "bando_closed"
|
|
1012
1011
|
msgstr "Expirado"
|
|
@@ -1032,14 +1031,12 @@ msgstr "Fecha de publicación"
|
|
|
1032
1031
|
msgid "bando_ente"
|
|
1033
1032
|
msgstr "Autoridad proveedora"
|
|
1034
1033
|
|
|
1035
|
-
#: components/ItaliaTheme/
|
|
1036
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1034
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1037
1035
|
# defaultMessage: In corso
|
|
1038
1036
|
msgid "bando_inProgress"
|
|
1039
1037
|
msgstr "En progreso"
|
|
1040
1038
|
|
|
1041
|
-
#: components/ItaliaTheme/
|
|
1042
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1039
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1043
1040
|
# defaultMessage: Attivo
|
|
1044
1041
|
msgid "bando_open"
|
|
1045
1042
|
msgstr "Activar"
|
|
@@ -1049,8 +1046,7 @@ msgstr "Activar"
|
|
|
1049
1046
|
msgid "bando_scadenza"
|
|
1050
1047
|
msgstr "Fecha de expiración:"
|
|
1051
1048
|
|
|
1052
|
-
#: components/ItaliaTheme/
|
|
1053
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1049
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1054
1050
|
# defaultMessage: Programmato
|
|
1055
1051
|
msgid "bando_scheduled"
|
|
1056
1052
|
msgstr "Programado"
|
|
@@ -1013,8 +1013,7 @@ msgstr ""
|
|
|
1013
1013
|
msgid "bandi_search_no_filters"
|
|
1014
1014
|
msgstr ""
|
|
1015
1015
|
|
|
1016
|
-
#: components/ItaliaTheme/
|
|
1017
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1016
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1018
1017
|
# defaultMessage: Scaduto
|
|
1019
1018
|
msgid "bando_closed"
|
|
1020
1019
|
msgstr "Expiré"
|
|
@@ -1040,14 +1039,12 @@ msgstr "Date de publication"
|
|
|
1040
1039
|
msgid "bando_ente"
|
|
1041
1040
|
msgstr "Autorité fournisseur"
|
|
1042
1041
|
|
|
1043
|
-
#: components/ItaliaTheme/
|
|
1044
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1042
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1045
1043
|
# defaultMessage: In corso
|
|
1046
1044
|
msgid "bando_inProgress"
|
|
1047
1045
|
msgstr "En cours"
|
|
1048
1046
|
|
|
1049
|
-
#: components/ItaliaTheme/
|
|
1050
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1047
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1051
1048
|
# defaultMessage: Attivo
|
|
1052
1049
|
msgid "bando_open"
|
|
1053
1050
|
msgstr "Actif"
|
|
@@ -1057,8 +1054,7 @@ msgstr "Actif"
|
|
|
1057
1054
|
msgid "bando_scadenza"
|
|
1058
1055
|
msgstr "Date d'expiration"
|
|
1059
1056
|
|
|
1060
|
-
#: components/ItaliaTheme/
|
|
1061
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1057
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1062
1058
|
# defaultMessage: Programmato
|
|
1063
1059
|
msgid "bando_scheduled"
|
|
1064
1060
|
msgstr ""
|
|
@@ -996,8 +996,7 @@ msgstr "Sfondo del blocco"
|
|
|
996
996
|
msgid "bandi_search_no_filters"
|
|
997
997
|
msgstr "Nessun filtro da mostrare. Seleziona i filtri di ricerca da mostrare dalla sidebar laterale."
|
|
998
998
|
|
|
999
|
-
#: components/ItaliaTheme/
|
|
1000
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
999
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1001
1000
|
# defaultMessage: Scaduto
|
|
1002
1001
|
msgid "bando_closed"
|
|
1003
1002
|
msgstr "Scaduto"
|
|
@@ -1023,14 +1022,12 @@ msgstr "Data di pubblicazione"
|
|
|
1023
1022
|
msgid "bando_ente"
|
|
1024
1023
|
msgstr "Ente erogatore"
|
|
1025
1024
|
|
|
1026
|
-
#: components/ItaliaTheme/
|
|
1027
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1025
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1028
1026
|
# defaultMessage: In corso
|
|
1029
1027
|
msgid "bando_inProgress"
|
|
1030
1028
|
msgstr "In corso"
|
|
1031
1029
|
|
|
1032
|
-
#: components/ItaliaTheme/
|
|
1033
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1030
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1034
1031
|
# defaultMessage: Attivo
|
|
1035
1032
|
msgid "bando_open"
|
|
1036
1033
|
msgstr "Attivo"
|
|
@@ -1040,8 +1037,7 @@ msgstr "Attivo"
|
|
|
1040
1037
|
msgid "bando_scadenza"
|
|
1041
1038
|
msgstr "Scadenza partecipazione"
|
|
1042
1039
|
|
|
1043
|
-
#: components/ItaliaTheme/
|
|
1044
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1040
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1045
1041
|
# defaultMessage: Programmato
|
|
1046
1042
|
msgid "bando_scheduled"
|
|
1047
1043
|
msgstr "Programmato"
|
package/locales/volto.pot
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Plone\n"
|
|
4
|
-
"POT-Creation-Date: 2023-11-
|
|
4
|
+
"POT-Creation-Date: 2023-11-07T09:01:50.705Z\n"
|
|
5
5
|
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
6
6
|
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
7
7
|
"MIME-Version: 1.0\n"
|
|
@@ -998,8 +998,7 @@ msgstr ""
|
|
|
998
998
|
msgid "bandi_search_no_filters"
|
|
999
999
|
msgstr ""
|
|
1000
1000
|
|
|
1001
|
-
#: components/ItaliaTheme/
|
|
1002
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1001
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1003
1002
|
# defaultMessage: Scaduto
|
|
1004
1003
|
msgid "bando_closed"
|
|
1005
1004
|
msgstr ""
|
|
@@ -1025,14 +1024,12 @@ msgstr ""
|
|
|
1025
1024
|
msgid "bando_ente"
|
|
1026
1025
|
msgstr ""
|
|
1027
1026
|
|
|
1028
|
-
#: components/ItaliaTheme/
|
|
1029
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1027
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1030
1028
|
# defaultMessage: In corso
|
|
1031
1029
|
msgid "bando_inProgress"
|
|
1032
1030
|
msgstr ""
|
|
1033
1031
|
|
|
1034
|
-
#: components/ItaliaTheme/
|
|
1035
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1032
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1036
1033
|
# defaultMessage: Attivo
|
|
1037
1034
|
msgid "bando_open"
|
|
1038
1035
|
msgstr ""
|
|
@@ -1042,8 +1039,7 @@ msgstr ""
|
|
|
1042
1039
|
msgid "bando_scadenza"
|
|
1043
1040
|
msgstr ""
|
|
1044
1041
|
|
|
1045
|
-
#: components/ItaliaTheme/
|
|
1046
|
-
#: components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando
|
|
1042
|
+
#: components/ItaliaTheme/View/Commons/BandoStatus
|
|
1047
1043
|
# defaultMessage: Programmato
|
|
1048
1044
|
msgid "bando_scheduled"
|
|
1049
1045
|
msgstr ""
|
package/package.json
CHANGED
package/publiccode.yml
CHANGED
|
@@ -227,9 +227,9 @@ maintenance:
|
|
|
227
227
|
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
|
|
228
228
|
platforms:
|
|
229
229
|
- web
|
|
230
|
-
releaseDate: '2023-11-
|
|
230
|
+
releaseDate: '2023-11-07'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 10.
|
|
232
|
+
softwareVersion: 10.3.0
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -19,6 +19,8 @@ import {
|
|
|
19
19
|
} from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
20
20
|
import { viewDate } from 'design-comuni-plone-theme/helpers';
|
|
21
21
|
|
|
22
|
+
import { BandoStatus } from 'design-comuni-plone-theme/components/ItaliaTheme/View';
|
|
23
|
+
|
|
22
24
|
const messages = defineMessages({
|
|
23
25
|
vedi: {
|
|
24
26
|
id: 'bando_vedi',
|
|
@@ -40,22 +42,6 @@ const messages = defineMessages({
|
|
|
40
42
|
id: 'bando_stato',
|
|
41
43
|
defaultMessage: 'Stato:',
|
|
42
44
|
},
|
|
43
|
-
open: {
|
|
44
|
-
id: 'bando_open',
|
|
45
|
-
defaultMessage: 'Attivo',
|
|
46
|
-
},
|
|
47
|
-
scheduled: {
|
|
48
|
-
id: 'bando_scheduled',
|
|
49
|
-
defaultMessage: 'Programmato',
|
|
50
|
-
},
|
|
51
|
-
closed: {
|
|
52
|
-
id: 'bando_closed',
|
|
53
|
-
defaultMessage: 'Scaduto',
|
|
54
|
-
},
|
|
55
|
-
inProgress: {
|
|
56
|
-
id: 'bando_inProgress',
|
|
57
|
-
defaultMessage: 'In corso',
|
|
58
|
-
},
|
|
59
45
|
ente: {
|
|
60
46
|
id: 'bando_ente',
|
|
61
47
|
defaultMessage: 'Ente',
|
|
@@ -137,14 +123,13 @@ const BandiInEvidenceTemplate = ({
|
|
|
137
123
|
)}
|
|
138
124
|
|
|
139
125
|
{/* Tipologia */}
|
|
140
|
-
|
|
141
|
-
{show_tipologia && item.tipologia_bando?.title?.length > 0 && (
|
|
126
|
+
{show_tipologia && item?.tipologia_bando && (
|
|
142
127
|
<span className="d-flex flex-wrap align-items-baseline bando-dati-info">
|
|
143
128
|
<div className="bando-dati-label me-2">
|
|
144
129
|
{intl.formatMessage(messages.tipologia)}:
|
|
145
130
|
</div>
|
|
146
131
|
<span className="bando-dati-date">
|
|
147
|
-
{item.tipologia_bando
|
|
132
|
+
{item.tipologia_bando}
|
|
148
133
|
</span>
|
|
149
134
|
</span>
|
|
150
135
|
)}
|
|
@@ -215,7 +200,7 @@ const BandiInEvidenceTemplate = ({
|
|
|
215
200
|
),
|
|
216
201
|
})}
|
|
217
202
|
>
|
|
218
|
-
{
|
|
203
|
+
<BandoStatus content={item} />
|
|
219
204
|
</div>
|
|
220
205
|
</span>
|
|
221
206
|
</span>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Importante: (06/11/2023)
|
|
3
|
+
* Component creato per essere possibile customizzare in modo più efficiente le traduzioni per lo status dei bandi.
|
|
4
|
+
* Deve essere cancellato dopo l'aggiornamento di Volto
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
8
|
+
|
|
9
|
+
const messages = defineMessages({
|
|
10
|
+
open: {
|
|
11
|
+
id: 'bando_open',
|
|
12
|
+
defaultMessage: 'Attivo',
|
|
13
|
+
},
|
|
14
|
+
closed: {
|
|
15
|
+
id: 'bando_closed',
|
|
16
|
+
defaultMessage: 'Scaduto',
|
|
17
|
+
},
|
|
18
|
+
inProgress: {
|
|
19
|
+
id: 'bando_inProgress',
|
|
20
|
+
defaultMessage: 'In corso',
|
|
21
|
+
},
|
|
22
|
+
scheduled: {
|
|
23
|
+
id: 'bando_scheduled',
|
|
24
|
+
defaultMessage: 'Programmato',
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* BandoStatus view component class.
|
|
30
|
+
* @function BandoStatus
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
const BandoStatus = ({ content }) => {
|
|
34
|
+
const intl = useIntl();
|
|
35
|
+
return <>{intl.formatMessage(messages[content.bando_state[0]])}</>;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export default BandoStatus;
|
|
@@ -43,9 +43,9 @@ const Metadata = ({
|
|
|
43
43
|
className={cx('it-page-section', { 'mb-5': !noMargin })}
|
|
44
44
|
>
|
|
45
45
|
{showSectionTitle && title && (
|
|
46
|
-
<
|
|
46
|
+
<h2 id="header-metadata" className="mb-3">
|
|
47
47
|
{title}
|
|
48
|
-
</
|
|
48
|
+
</h2>
|
|
49
49
|
)}
|
|
50
50
|
{children}
|
|
51
51
|
<p className="font-serif mb-0 mt-4 last-modified">
|
|
@@ -5,6 +5,8 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
|
|
6
6
|
import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
7
7
|
|
|
8
|
+
import { BandoStatus } from 'design-comuni-plone-theme/components/ItaliaTheme/View';
|
|
9
|
+
|
|
8
10
|
/**
|
|
9
11
|
* PageHeaderBando view component class.
|
|
10
12
|
* @function PageHeaderBando
|
|
@@ -17,22 +19,6 @@ const messages = defineMessages({
|
|
|
17
19
|
id: 'Bando',
|
|
18
20
|
defaultMessage: 'Bando',
|
|
19
21
|
},
|
|
20
|
-
open: {
|
|
21
|
-
id: 'bando_open',
|
|
22
|
-
defaultMessage: 'attivo',
|
|
23
|
-
},
|
|
24
|
-
closed: {
|
|
25
|
-
id: 'bando_closed',
|
|
26
|
-
defaultMessage: 'scaduto',
|
|
27
|
-
},
|
|
28
|
-
inProgress: {
|
|
29
|
-
id: 'bando_inProgress',
|
|
30
|
-
defaultMessage: 'in corso',
|
|
31
|
-
},
|
|
32
|
-
scheduled: {
|
|
33
|
-
id: 'bando_scheduled',
|
|
34
|
-
defaultMessage: 'programmato',
|
|
35
|
-
},
|
|
36
22
|
});
|
|
37
23
|
|
|
38
24
|
const PageHeaderBando = ({ content }) => {
|
|
@@ -64,7 +50,7 @@ const PageHeaderBando = ({ content }) => {
|
|
|
64
50
|
size=""
|
|
65
51
|
/>
|
|
66
52
|
{intl.formatMessage(messages.bando)}{' '}
|
|
67
|
-
{
|
|
53
|
+
<BandoStatus content={content} />
|
|
68
54
|
</div>
|
|
69
55
|
</div>
|
|
70
56
|
</div>
|
|
@@ -73,6 +73,7 @@ export Sponsors from 'design-comuni-plone-theme/components/ItaliaTheme/View/Comm
|
|
|
73
73
|
export RelatedItems from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/RelatedItems';
|
|
74
74
|
export RelatedItemInEvidence from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/RelatedItemInEvidence/RelatedItemInEvidence';
|
|
75
75
|
export DownloadFileFormat from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/DownloadFileFormat';
|
|
76
|
+
export BandoStatus from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/BandoStatus';
|
|
76
77
|
export BandoDates from 'design-comuni-plone-theme/components/ItaliaTheme/View/Commons/BandoDates';
|
|
77
78
|
|
|
78
79
|
/* --- View --- */
|