mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Show character counters on register page.
This commit is contained in:
parent
f0197b5af6
commit
36f10d51ee
@ -13,7 +13,7 @@
|
|||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
<div class="input-field">
|
<div class="input-field">
|
||||||
<i class="material-icons prefix">person</i>
|
<i class="material-icons prefix">person</i>
|
||||||
{{ form.username(class='validate') }}
|
{{ form.username(class='validate', data_length='64') }}
|
||||||
{{ form.username.label }}
|
{{ form.username.label }}
|
||||||
{% for error in form.username.errors %}
|
{% for error in form.username.errors %}
|
||||||
<span class="helper-text red-text">{{ error }}</span>
|
<span class="helper-text red-text">{{ error }}</span>
|
||||||
@ -37,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="input-field ">
|
<div class="input-field ">
|
||||||
<i class="material-icons prefix">email</i>
|
<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 }}
|
{{ form.email.label }}
|
||||||
{% for error in form.email.errors %}
|
{% for error in form.email.errors %}
|
||||||
<span class="helper-text red-text">{{ error }}</span>
|
<span class="helper-text red-text">{{ error }}</span>
|
||||||
|
@ -182,7 +182,7 @@
|
|||||||
<script type="text/javascript" src="{{ url_for('static', filename='js/materialize.min.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('static', filename='js/materialize.min.js') }}"></script>
|
||||||
<script>
|
<script>
|
||||||
M.AutoInit();
|
M.AutoInit();
|
||||||
M.CharacterCounter.init(document.querySelectorAll('input[data-length][type="text"]'))
|
M.CharacterCounter.init(document.querySelectorAll('input[data-length]'))
|
||||||
M.Dropdown.init(
|
M.Dropdown.init(
|
||||||
document.getElementById("nav-notifications"),
|
document.getElementById("nav-notifications"),
|
||||||
{"alignment": "right", "constrainWidth": false, "coverTrigger": false}
|
{"alignment": "right", "constrainWidth": false, "coverTrigger": false}
|
||||||
|
Loading…
Reference in New Issue
Block a user