feat(templates/allauth): style allauth elements
This commit is contained in:
13
kursy/templates/allauth/elements/fields.html
Normal file
13
kursy/templates/allauth/elements/fields.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% load allauth %}
|
||||
{% for bound_field in attrs.form %}
|
||||
{% element field unlabeled=attrs.unlabeled name=bound_field.name type=bound_field.field.widget.input_type required=bound_field.field.required value=bound_field.value id=bound_field.auto_id errors=bound_field.errors placeholder=bound_field.field.widget.attrs.placeholder tabindex=bound_field.field.widget.attrs.tabindex autocomplete=bound_field.field.widget.attrs.autocomplete style=bound_field.field.widget.attrs.style choices=bound_field.field.choices %}
|
||||
{% slot label %}
|
||||
{{ bound_field.label }}
|
||||
{% endslot %}
|
||||
{% if bound_field.field.help_text %}
|
||||
{% slot help_text %}
|
||||
{{ bound_field.field.help_text }}
|
||||
{% endslot %}
|
||||
{% endif %}
|
||||
{% endelement %}
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user