Skip to content

Commit

Permalink
Merge pull request #772 from Amsterdam/feature/tooltip
Browse files Browse the repository at this point in the history
feature: tooltip tooltip_text to tooltip
  • Loading branch information
mguikema authored Jan 27, 2022
2 parents 0600cf9 + f2af89a commit 1ffb2cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
</camunda:formField>
<camunda:formField id="concept_aanschrijving_toelichting" label="Toelichting" type="string">
<camunda:properties>
<camunda:property id="tooltip_text" value="Vermeld hier type concept (bijv. voornemen boete) en naam aangeschreven persoon" />
<camunda:property id="tooltip" value="Vermeld hier type concept (bijv. voornemen boete) en naam aangeschreven persoon" />
</camunda:properties>
</camunda:formField>
</camunda:formData>
Expand Down
2 changes: 1 addition & 1 deletion app/apps/workflow/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class GenericFormFieldSerializer(serializers.Serializer):
type = serializers.ChoiceField(
choices=(("text", "text"), ("select", "select"), ("checkbox", "checkbox"))
)
tooltip_text = serializers.CharField(required=False)
tooltip = serializers.CharField(required=False)
required = serializers.BooleanField()


Expand Down
4 changes: 2 additions & 2 deletions app/apps/workflow/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def parse_task_spec_form(form):
"required": not bool(
[v.name for v in f.validation if v.name == "optional"]
),
"tooltip_text": next(
iter([v.value for v in f.properties if v.id == "tooltip_text"]), None
"tooltip": next(
iter([v.value for v in f.properties if v.id == "tooltip"]), None
),
}
for f in form.fields
Expand Down

0 comments on commit 1ffb2cb

Please sign in to comment.