diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-05-14 00:40:34 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-05-14 00:40:34 +0100 |
| commit | 73fa5d11866e1ab36463c3a773b8ca0d3671a709 (patch) | |
| tree | e1e21333d32746d1a3c02d81033f7561779672b0 /app/templates/users | |
| parent | acc48c72620fe9bfdf3c72666d57af7e3c9306d0 (diff) | |
| download | cheatdb-73fa5d11866e1ab36463c3a773b8ca0d3671a709.tar.xz | |
Add email support
Diffstat (limited to 'app/templates/users')
| -rw-r--r-- | app/templates/users/user_profile_page.html | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html index 7e280e1..2d429f1 100644 --- a/app/templates/users/user_profile_page.html +++ b/app/templates/users/user_profile_page.html @@ -42,24 +42,6 @@ {% endif %} </td> </tr> - {% if user == current_user %} - <tr> - <td>Email:</td> - <td> - {{ user.email }} | - <a href="">{% if user.email %}change{% else %}add{% endif %}</a> - 🔒 - </td> - </tr> - <tr> - <td>Password:</td> - <td> - <a href="{{ url_for('user.change_password') }}"> - {% if user.password %}Change password{% else %}Add password{% endif %} - </a> 🔒 - </td> - </tr> - {% endif %} </table> </div> @@ -90,10 +72,14 @@ <div class="col-sm-6 col-md-5 col-lg-4"> {{ form.hidden_tag() }} - {{ render_field(form.display_name, tabindex=240) }} + {{ render_field(form.display_name, tabindex=230) }} + + {% if user.checkPerm(current_user, "CHANGE_EMAIL") %} + {{ render_field(form.email, tabindex=240) }} + {% endif %} {% if user.checkPerm(current_user, "CHANGE_RANK") %} - {{ render_field(form.rank, tabindex=240) }} + {{ render_field(form.rank, tabindex=250) }} {% endif %} {{ render_submit_field(form.submit, tabindex=280) }} |
