Layout update

This commit is contained in:
Patrick Jentsch 2019-07-10 08:56:49 +02:00
parent 93b67cb297
commit 8a509ecc63
2 changed files with 2 additions and 10 deletions

View File

@ -6,13 +6,6 @@
<form method="POST">
<div class="card-content">
{{ form.hidden_tag() }}
<div class="input-field">
{{ form.email(class='validate', type='email') }}
{{ form.email.label }}
{% for error in form.email.errors %}
<span class="helper-text" style="color:red;">{{ error }}</span>
{% endfor %}
</div>
<div class="input-field">
{{ form.password(class='validate', type='password') }}
{{ form.password.label }}

View File

@ -13,16 +13,15 @@
{{ form.hidden_tag() }}
<div class="input-field ">
<i class="material-icons prefix">email</i>
{{ form.email(type='email', placeholder=current_user.email) }}
{{ form.email(type='email', value=current_user.email) }}
{{ form.email.label }}
<span class="helper-text" data-error="wrong" data-success="right">When changing your e-mail adress you will have to reconfirm it.</span>
{% for error in form.email.errors %}
<span class="helper-text" style="color:red;">{{ error }}</span>
{% endfor %}
</div>
<div class="input-field ">
<i class="material-icons prefix">person</i>
{{ form.username(placeholder=current_user.username) }}
{{ form.username(value=current_user.username) }}
{{ form.username.label }}
{% for error in form.username.errors %}
<span class="helper-text" style="color:red;">{{ error }}</span>