workflows: move "post formdata" checkbox to advanced tab (#43614) #1189

Merged
fpeters merged 1 commits from wip/43614-post-formdata-checkbox into main 2024-02-26 11:23:20 +01:00
1 changed files with 7 additions and 1 deletions

View File

@ -258,7 +258,12 @@ class WebserviceCallStatusItem(WorkflowStatusItem):
form.add(
CheckboxWidget,
'%spost' % prefix,
title=_('Post formdata'),
title=_('Post complete card/form data'),
hint=_(
'Warning: this option sends the full content of the card/form, '
'with additional POST data in an additional "extra" key. It is often '
'not necessary.'
),
value=self.post,
attrs={
'data-dynamic-display-child-of': '%smethod' % prefix,
@ -271,6 +276,7 @@ class WebserviceCallStatusItem(WorkflowStatusItem):
]
),
},
advanced=True,
)
if 'post_data' in parameters:
form.add(