Chapter 11

This commit is contained in:
2023-06-04 11:24:53 +02:00
parent 44e46135a6
commit 190cd464cf
13 changed files with 294 additions and 188 deletions

View File

@@ -1,23 +1,11 @@
{% extends 'base.html' %}
{% extends "base.html" %}
{% import 'bootstrap/wtf.html' as wtf %}
{% 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>
{% block app_content %}
<h1>Edit Profile</h1>
<div class="row">
<div class="col-md-4">
{{ wtf.quick_form(form) }}
</div>
</div>
{% endblock %}