Skip to content

Commit

Permalink
updated ct profile
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-andreotti committed Jul 1, 2024
1 parent 13ec5be commit aa03c5e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/iosanita/contenttypes/interfaces/come_fare_per.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,10 @@ class IComeFarePer(model.Schema, IIosanitaContenttypes):
# "selectableTypes": ["UnitaOrganizzativa"],
# },
# )
# form.widget(
# "altri_documenti",
# RelatedItemsFieldWidget,
# vocabulary="plone.app.vocabularies.Catalog",
# pattern_options={"selectableTypes": ["Documento"]},
# )

10 changes: 8 additions & 2 deletions src/iosanita/contenttypes/interfaces/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class IStep(model.Schema, IIosanitaContenttypes):
title=_("testo_label", default="Testo"),
description=_(
"testo_help",
default="Testo.",
default="Descrizione del passo della procedura.",
),
required=False,
)
Expand All @@ -32,7 +32,7 @@ class IStep(model.Schema, IIosanitaContenttypes):
required=True,
description=_(
"dove_help",
default="Seleziona una lista delle sedi e dei luoghi",
default="Seleziona una struttura o punto di contatto.",
),
)

Expand All @@ -58,4 +58,10 @@ class IStep(model.Schema, IIosanitaContenttypes):
# "selectableTypes": ["UnitaOrganizzativa"],
# },
# )
# form.widget(
# "documenti",
# RelatedItemsFieldWidget,
# vocabulary="plone.app.vocabularies.Catalog",
# pattern_options={"selectableTypes": ["Documento"]},
# )

2 changes: 1 addition & 1 deletion src/iosanita/contenttypes/profiles/default/types/Step.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<property name="link_target" />

<!-- Hierarchy control -->
<property name="global_allow">True</property>
<property name="global_allow">False</property>
<property name="filter_content_types">True</property>
<property name="allowed_content_types"
purge="False"
Expand Down

0 comments on commit aa03c5e

Please sign in to comment.