Skip to content

Commit

Permalink
update persona with new fields trasparenza
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-bellenghi committed Sep 2, 2024
1 parent 2370cec commit a8adb38
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ Changelog
6.2.15 (unreleased)
-------------------

- Nothing changed yet.

- Add "Emolumenti a carico della finanza pubblica" to Persona
Add "Dichiarazioni di insussistenza e incompatibilità" to Persona
[lucabel]

6.2.14 (2024-07-11)
-------------------
Expand Down
24 changes: 23 additions & 1 deletion src/design/plone/contenttypes/interfaces/persona.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,24 @@ class IPersona(model.Schema, IDesignPloneContentType):
),
)

emolumenti_a_carico_della_finanza_pubblica = field.NamedBlobFile(
title=_(
"emolumenti_a_carico_della_finanza_pubblica_label",
default="Emolumenti a carico della finanza pubblica",
),
required=False,
description="",
)

dichiarazioni_di_insussistenza_e_incompatibilita = field.NamedBlobFile(
title=_(
"dichiarazioni_di_insussistenza_e_incompatibilita_label",
default="Dichiarazioni di insussistenza e incompatibilità",
),
required=False,
description="",
)

# custom widgets
form.widget(
"organizzazione_riferimento",
Expand Down Expand Up @@ -144,7 +162,11 @@ class IPersona(model.Schema, IDesignPloneContentType):
model.fieldset(
"documenti",
label=_("documenti_label", default="Documenti"),
fields=["curriculum_vitae"],
fields=[
"curriculum_vitae",
"emolumenti_a_carico_della_finanza_pubblica",
"dichiarazioni_di_insussistenza_e_incompatibilita",
],
)

# SearchableText fields
Expand Down

0 comments on commit a8adb38

Please sign in to comment.