Skip to content

Commit 3dcca69

Browse files
committed
update input to include "time" & "url" type
1 parent 8771ac4 commit 3dcca69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hypha/templates/django/forms/widgets/input.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<input
2-
class="validator {% if widget.type == 'text' or widget.type == 'email' or widget.type == 'password' %}input{% endif %}{% if widget.type == 'checkbox' %}checkbox{% endif %}{% if widget.type == 'radio' %}radio{% endif %}"
2+
class="validator {% if widget.type == 'text' or widget.type == 'time' or widget.type == 'email' or widget.type == 'password' or widget.type == 'url' or widget.type == 'number' %}input{% endif %}{% if widget.type == 'checkbox' %}checkbox{% endif %}{% if widget.type == 'radio' %}radio{% endif %}"
33
type="{{ widget.type }}"
44
name="{{ widget.name }}"{% if widget.value != None %}
55
value="{{ widget.value|stringformat:'s' }}"{% endif %}{% include "django/forms/widgets/attrs.html" %}

0 commit comments

Comments
 (0)