mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 13:18:35 +00:00
Add Jinja templating to form field help
This commit is contained in:
parent
896ce8934b
commit
5ef2905d3c
@ -781,6 +781,15 @@ class WorkflowService(object):
|
||||
for i in range(len(task.form.fields)):
|
||||
task.data.pop(task.form.fields[i].id, None)
|
||||
|
||||
# Pass help text through the Jinja parser
|
||||
if task.form and task.form.fields:
|
||||
for field in task.form.fields:
|
||||
if field.properties:
|
||||
for field_property in field.properties:
|
||||
if field_property.id == 'help':
|
||||
jinja_text = JinjaService().get_content(field_property.value, task.data)
|
||||
field_property.value = jinja_text
|
||||
|
||||
return task
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user