Commit 6bb8d04e authored by Valentin Benozillo's avatar Valentin Benozillo

erp5_hal_json_style: Define min and max to integer html field

when defining start and end property in ERP5 integer field
parent 9fd020ff
......@@ -555,6 +555,11 @@ def renderField(traversed_document, field, form, value=MARKER, meta_type=None,
result.update({
"maxlength": field.get_value("display_maxwidth"),
})
if meta_type == "IntegerField":
result.update({
"min": field.get_value("start"),
"max": field.get_value("end"),
})
if meta_type == "FloatField":
result.update({
"precision": field.get_value("precision"),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment