This commit is contained in:
Aaron Kimbre
2022-05-11 13:05:18 -05:00
parent 1dbe0ce980
commit 07136ef283
4 changed files with 57 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
{% extends 'base.html.j2' %}
{% block title %}
Edit E-mail for User {{ username }}
{% endblock title %}
{% block content_before %}
Edit E-mail for User {{ username }}
{% endblock content_before %}
{% block content %}
<form method=post>
{{ form.csrf_token }}
<div class="card shadow-sm mx-auto pb-3 bg-dark border-primary" style="width: 20rem;">
<div class="card-body">
{{ helper.render_field(form.email) }}
{{ helper.render_submit_field(form.submit) }}
</div>
</div>
</form>
{% endblock content %}

View File

@@ -23,6 +23,12 @@
<br/>
<div class="col">
{{ account_data.email }}
{% if current_user.gm_level >= 8 and not(current_user.gm_level == 8 and account_data.gm_level == 8)%}
<a role="button" class="btn btn-primary"
href='{{ url_for('accounts.edit_email', id=account_data.id) }}'>
Edit
</a>
{% endif %}
</div>
</div>
{% endif %}