Skip to content

Commit 3f34931

Browse files
committed
Updated styles & templates
1 parent cae0312 commit 3f34931

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

app/static/styles/flask-auth.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,22 @@ header {
1616
text-align: center;
1717
}
1818

19-
h1, h2, h3, p, label, li {
19+
h1, h2, h3, p, label {
2020
color: whitesmoke;
2121
}
2222

2323
ol {
2424
list-style-type: none;
2525
}
2626

27+
li {
28+
color: whitesmoke;
29+
padding: 5px;
30+
}
31+
2732
a {
2833
text-decoration: none;
29-
color: black;
34+
color: whitesmoke;
3035
padding: 2px;
3136
display: inline-block;
3237
border: transparent;

app/templates/account.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22

33
{% block content %}
44
<div class="box">
5-
<h1>Account Info</h1>
65
<ol>
6+
<li><h2>Account Info</h2></li>
77
<li><strong>Username: </strong>{{ username }}</li>
88
<li><strong>Email: </strong>{{ email }}</li>
99
<li><strong>Account Type: </strong>{{ type }}</li>
10+
<li>
11+
<form action="{{ url_for('del_user') }}" method="POST">
12+
<input type="hidden" id="username" name="username" value="{{ username }}">
13+
<input type="submit" value="Delete Account">
14+
</form>
15+
</li>
1016
</ol>
11-
<form action="{{ url_for('del_user') }}" method="POST">
12-
<input type="hidden" id="username" name="username" value="{{ username }}">
13-
<input type="submit" value="Delete Account">
14-
</form>
1517

1618
<form action="{{ url_for('change_username') }}" method="POST" accept-charset="UTF-8" autocomplete="off" autofocus="off" enctype="multipart/form-data">
1719
<h2>Change Username</h2><br/>

app/templates/admin.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22

33
{% block content %}
44
<div class="box">
5-
<h1>Account Info</h1>
65
<ol>
6+
<li><h2>Account Info</h2></li>
77
<li><strong>Username: </strong>{{ username }}</li>
88
<li><strong>Email: </strong>{{ email }}</li>
99
<li><strong>Account Type: </strong>{{ type }}</li>
10+
<li>
11+
<form action="{{ url_for('del_user') }}" method="POST">
12+
<input type="hidden" id="username" name="username" value="{{ username }}">
13+
<input type="submit" value="Delete Account">
14+
</form>
15+
</li>
1016
</ol>
11-
<form action="{{ url_for('del_user') }}" method="POST">
12-
<input type="hidden" id="username" name="username" value="{{ username }}">
13-
<input type="submit" value="Delete Account">
14-
</form>
1517

1618
<form action="{{ url_for('change_username') }}" method="POST" accept-charset="UTF-8" autocomplete="off" autofocus="off" enctype="multipart/form-data">
1719
<h2>Change Username</h2><br/>

0 commit comments

Comments
 (0)