44
55{% block content %}
66< div class ="container mt-4 ">
7- < h2 > Settings</ h2 >
8-
9- <!-- Flash messages -->
10- {% with messages = get_flashed_messages(with_categories=true) %}
11- {% if messages %}
12- {% for category, message in messages %}
13- < div class ="alert alert-{{ category }} alert-dismissible fade show " role ="alert ">
14- {{ message }}
15- < button type ="button " class ="btn-close " data-bs-dismiss ="alert " aria-label ="Close "> </ button >
16- </ div >
17- {% endfor %}
18- {% endif %}
19- {% endwith %}
7+ < h2 class ="text-center "> Settings</ h2 >
208
219 < form method ="POST ">
2210 {{ form.hidden_tag() }}
2311
12+ < h3 class ="text-center mt-4 mb-3 "> Change Personal Information</ h3 >
13+
2414 < div class ="mb-3 ">
2515 {{ form.username.label(class="form-label") }}
2616 {{ form.username(class="form-control") }}
@@ -33,28 +23,25 @@ <h2>Settings</h2>
3323
3424 < hr >
3525
36- < h5 > Change Password </ h5 >
26+
3727 < div class ="mb-3 ">
3828 {{ form.current_password.label(class="form-label") }}
3929 {{ form.current_password(class="form-control") }}
4030 </ div >
31+
4132 < div class ="mb-3 ">
4233 {{ form.new_password.label(class="form-label") }}
4334 {{ form.new_password(class="form-control") }}
4435 </ div >
36+
4537 < div class ="mb-3 ">
4638 {{ form.confirm_password.label(class="form-label") }}
4739 {{ form.confirm_password(class="form-control") }}
4840 </ div >
4941
50- < button type ="submit " class ="btn btn-primary mt-3 "> {{ form.submit.label.text }}</ button >
42+ < div class ="text-center ">
43+ < button type ="submit " class ="btn btn-primary mt-3 "> {{ form.submit.label.text }}</ button >
44+ </ div >
5145 </ form >
5246</ div >
5347{% endblock %}
54- {% with messages = get_flashed_messages(with_categories=true) %}
55- {% if messages %}
56- {% for category, message in messages %}
57- < div class ="alert alert-{{ category }} "> {{ message }}</ div >
58- {% endfor %}
59- {% endif %}
60- {% endwith %}
0 commit comments