mirror of
https://github.com/rmontanana/microblog.git
synced 2025-08-19 09:15:52 +00:00
Chapter 6
This commit is contained in:
23
app/templates/edit_profile.html
Normal file
23
app/templates/edit_profile.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Edit Profile</h1>
|
||||
<form action="" method="post">
|
||||
{{ form.hidden_tag() }}
|
||||
<p>
|
||||
{{ form.username.label }}<br />
|
||||
{{ form.username(size = 32) }}<br />
|
||||
{% for error in form.username.errors %}
|
||||
<span style="color: red;">[{{ error }}]</span>
|
||||
{% endfor %}
|
||||
</p>
|
||||
<p>
|
||||
{{ form.about_me.label }}<br />
|
||||
{{ form.about_me(cols = 50, rows = 4) }}<br />
|
||||
{% for error in form.about_me.errors %}
|
||||
<span style="color: red;">[{{ error }}]</span>
|
||||
{% endfor %}
|
||||
</p>
|
||||
<p>{{ form.submit() }}</p>
|
||||
</form>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user