Show character counters on register page.

This commit is contained in:
Patrick Jentsch
2019-09-12 14:25:03 +02:00
parent f0197b5af6
commit 36f10d51ee
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
{{ form.hidden_tag() }}
<div class="input-field">
<i class="material-icons prefix">person</i>
{{ form.username(class='validate') }}
{{ form.username(class='validate', data_length='64') }}
{{ form.username.label }}
{% for error in form.username.errors %}
<span class="helper-text red-text">{{ error }}</span>
@ -37,7 +37,7 @@
</div>
<div class="input-field ">
<i class="material-icons prefix">email</i>
{{ form.email(class='validate', type='email') }}
{{ form.email(class='validate', data_length='254', type='email') }}
{{ form.email.label }}
{% for error in form.email.errors %}
<span class="helper-text red-text">{{ error }}</span>