Skip to content

Commit

Permalink
Added invalid to time input field
Browse files Browse the repository at this point in the history
  • Loading branch information
trollfot committed Dec 8, 2023
1 parent e26e415 commit fcb6b5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deform/templates/timeinput.pt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<span tal:define="size size|field.widget.size;
css_class css_class|field.widget.css_class;
oid oid|field.oid;
error_class error_class|field.widget.error_class;
style style|field.widget.style|None;
type_name type_name|field.widget.type_name;
autofocus autofocus|field.autofocus"
Expand All @@ -10,7 +11,7 @@
name="time"
value="${cstruct}"
tal:attributes="size size;
class string: ${css_class or ''} form-control hasDatepicker;
class string:form-control hasDatepicker ${field.error and error_class or css_class or ''};
style style;
autofocus autofocus;
required field.required and 'required' or None;
Expand Down

0 comments on commit fcb6b5b

Please sign in to comment.