Skip to content
Snippets Groups Projects
Commit d31ede4d authored by legac's avatar legac
Browse files

Add a red star after the label for required fields.

parent f9fe6d43
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,7 @@ def _to_field(field, linkedcombo=True, **kwargs):
elif field.notnull:
cfg["allowBlank"] = False
cfg["afterLabelTextTpl"] = '<span style="color:red"> * </span>'
# read only field
if field.readable and not field.writable:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment