1
1
Fork 0

Little late-night improvement

dev
Jan Kužílek 5 years ago
parent 000928e05d
commit 14b5352442

@ -35,7 +35,7 @@ def settings():
def change_info():
form = ChangeUserInfoForm(request.form)
if form.validate():
current_user.biography = form.bio.data
current_user.biography = form.bio.data.strip()
db.session.commit()
flash('Your biography was updated.')

@ -13,10 +13,12 @@
{{ form.password(placeholder="Password") }}
{{ errors(form.password) }}
<div class="row">
<ul>
<li>
{{ form.remember_me() }}{{ form.remember_me.label }}
</li>
</ul>
{{ errors(form.remember_me) }}
</div>
<div class="row stretch">
{{ form.submit() }}
<a href="{{ url_for('auth.reset_password') }}">Forgotten password?</a>

@ -60,14 +60,16 @@
<h3>Delete user data</h3>
<form action="{{ url_for('user.delete_data') }}" method="post">
{{ delete_form.csrf_token }}
<ul>
<li>
{{ delete_form.all_comments() }}{{ delete_form.all_comments.label }}
{{ errors(delete_form.all_posts) }}
<div>
{{ errors(delete_form.all_comments) }}
</li>
<li>
{{ delete_form.all_posts() }}{{ delete_form.all_posts.label }}
{{ errors(delete_form.all_posts) }}
</div>
</li>
</ul>
{{ delete_form.delete_submit() }}
</form>

Loading…
Cancel
Save