Files
runnerspace/templates/pages/user_edit.html
Xevion f41b83a15f Apply new form validation features to New Post form
- Use TextAreaField instead of StringField on forms.NewPostForm
- Fixed incorrect remember_me field and redirect in login
- Added placeholder usage to field rendering macro
2022-03-29 15:13:00 -05:00

24 lines
744 B
HTML

{% extends 'layouts/index.html' %}
{% block content %}
<h3>Edit Profile</h3>
<form method="POST" action="{{ url_for('forms.edit_profile_post', username=user.username) }}" class="form">
<label>
Name<br>
<input type="text" name="name" value="{{ user.name }}">
</label><br>
<label>
About Me
<textarea type="text" name="about-me">{{ user.about_me }}</textarea>
</label>
<button class="button">Save & Submit</button>
</form>
{% with messages = get_flashed_messages() %}
{% if messages %}
<span class="error-message">
{{ messages[0] }}
</span>
{% endif %}
{% endwith %}
{% endblock %}