show help text for textareas as well w/ burnettk
This commit is contained in:
parent
27cf9d7284
commit
ccccf8bf96
|
@ -1280,6 +1280,7 @@ class ProcessInstanceProcessor:
|
||||||
# by background processing. when that happens it can potentially overwrite
|
# by background processing. when that happens it can potentially overwrite
|
||||||
# human tasks which is bad because we cache them with the previous id's.
|
# human tasks which is bad because we cache them with the previous id's.
|
||||||
# waiting_tasks = bpmn_process_instance.get_tasks(TaskState.WAITING)
|
# waiting_tasks = bpmn_process_instance.get_tasks(TaskState.WAITING)
|
||||||
|
# waiting_tasks = bpmn_process_instance.get_waiting()
|
||||||
# if len(waiting_tasks) > 0:
|
# if len(waiting_tasks) > 0:
|
||||||
# return ProcessInstanceStatus.waiting
|
# return ProcessInstanceStatus.waiting
|
||||||
if len(user_tasks) > 0:
|
if len(user_tasks) > 0:
|
||||||
|
|
|
@ -61,6 +61,11 @@ function TextareaWidget<
|
||||||
labelToUse = `${labelToUse}*`;
|
labelToUse = `${labelToUse}*`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let helperText = null;
|
||||||
|
if (uiSchema && uiSchema['ui:help']) {
|
||||||
|
helperText = uiSchema['ui:help'];
|
||||||
|
}
|
||||||
|
|
||||||
let invalid = false;
|
let invalid = false;
|
||||||
let errorMessageForField = null;
|
let errorMessageForField = null;
|
||||||
if (rawErrors && rawErrors.length > 0) {
|
if (rawErrors && rawErrors.length > 0) {
|
||||||
|
@ -73,6 +78,7 @@ function TextareaWidget<
|
||||||
id={id}
|
id={id}
|
||||||
name={id}
|
name={id}
|
||||||
className="text-input"
|
className="text-input"
|
||||||
|
helperText={helperText}
|
||||||
value={value || ''}
|
value={value || ''}
|
||||||
labelText=""
|
labelText=""
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
|
|
Loading…
Reference in New Issue