From c9f7bad23e21842e74ef32b1f885be5f6b451451 Mon Sep 17 00:00:00 2001 From: Piero Nicolli Date: Fri, 12 Jan 2024 09:40:13 +0100 Subject: [PATCH] [new] added pdc description --- CHANGES.rst | 3 ++- .../plone/contenttypes/interfaces/punto_di_contatto.py | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 1ac2bb4c..2bb4f441 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 6.1.10 (unreleased) ------------------- -- Nothing changed yet. +- Added description to PDC fields + [pnicolli] 6.1.9 (2024-01-11) diff --git a/src/design/plone/contenttypes/interfaces/punto_di_contatto.py b/src/design/plone/contenttypes/interfaces/punto_di_contatto.py index 0639904b..38964d36 100644 --- a/src/design/plone/contenttypes/interfaces/punto_di_contatto.py +++ b/src/design/plone/contenttypes/interfaces/punto_di_contatto.py @@ -22,6 +22,16 @@ class IPDCValueSchema(model.Schema): required=True, default="", ) + pdc_desc = schema.TextLine( + title=_("pdc_desc_label", default="Descrizione"), + description=_( + "pdc_desc_help", + default="Descrizione", + ), + required=False, + default="", + max_length=255, + ) pdc_value = schema.TextLine( title=_("pdc_value_label", default="Contatto"), description=_(