From 8a509ecc63453a65ee3976707865090a2b5f127d Mon Sep 17 00:00:00 2001
From: Patrick Jentsch <p.jentsch@uni-bielefeld.de>
Date: Wed, 10 Jul 2019 08:56:49 +0200
Subject: [PATCH] Layout update

---
 app/templates/auth/reset_password.html.j2 | 7 -------
 app/templates/auth/settings.html.j2       | 5 ++---
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/app/templates/auth/reset_password.html.j2 b/app/templates/auth/reset_password.html.j2
index 8ef7c055..5a3ad381 100644
--- a/app/templates/auth/reset_password.html.j2
+++ b/app/templates/auth/reset_password.html.j2
@@ -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 }}
diff --git a/app/templates/auth/settings.html.j2 b/app/templates/auth/settings.html.j2
index c0bf3474..1f718983 100644
--- a/app/templates/auth/settings.html.j2
+++ b/app/templates/auth/settings.html.j2
@@ -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>
-- 
GitLab