diff options
author | Yigit Sever | 2021-04-16 16:39:23 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-16 16:39:23 +0300 |
commit | e7cd705175abb820cd4bfdb28693615ef2171597 (patch) | |
tree | f566559baf0dd3aadd4caad0f8929c26a6463309 /templates | |
parent | 764aede8aae695981ee00c1aea3e82253aca02b7 (diff) | |
download | gradecoin-e7cd705175abb820cd4bfdb28693615ef2171597.tar.gz gradecoin-e7cd705175abb820cd4bfdb28693615ef2171597.tar.bz2 gradecoin-e7cd705175abb820cd4bfdb28693615ef2171597.zip |
Add existing user get support
Diffstat (limited to 'templates')
-rw-r--r-- | templates/css.html | 27 | ||||
-rw-r--r-- | templates/header.html | 5 | ||||
-rw-r--r-- | templates/list.html | 15 |
3 files changed, 38 insertions, 9 deletions
diff --git a/templates/css.html b/templates/css.html index c9d54e3..a918a4b 100644 --- a/templates/css.html +++ b/templates/css.html | |||
@@ -1,8 +1,23 @@ | |||
1 | <style> | 1 | <style> |
2 | td, th { | 2 | table, th, td { |
3 | padding: 8px; | 3 | border: 1px solid black; |
4 | } | 4 | border-collapse: collapse; |
5 | th { | 5 | } |
6 | text-align: left; | 6 | th, td { |
7 | } | 7 | padding: 15px; |
8 | } | ||
9 | #t01 { | ||
10 | width: 100%; | ||
11 | background-color: #fbf1c7; | ||
12 | } | ||
13 | #t01 tr:nth-child(even) { | ||
14 | background-color: #a89984; | ||
15 | } | ||
16 | #t01 tr:nth-child(odd) { | ||
17 | background-color: #f9f5d7; | ||
18 | } | ||
19 | #t01 th { | ||
20 | color: #fbf1c7; | ||
21 | background-color: #282828; | ||
22 | } | ||
8 | </style> | 23 | </style> |
diff --git a/templates/header.html b/templates/header.html index fffbefe..a142fad 100644 --- a/templates/header.html +++ b/templates/header.html | |||
@@ -1,11 +1,10 @@ | |||
1 | <html> | 1 | <html> |
2 | <head> | 2 | <head> |
3 | <title>Bookstore</title> | 3 | <title>Gradecoin</title> |
4 | {% include "css.html" %} | 4 | {% include "css.html" %} |
5 | </head> | 5 | </head> |
6 | <body> | 6 | <body> |
7 | <div> | 7 | <div> |
8 | <h1>Bookstore</h1> | 8 | <h1>Registered Users</h1> |
9 | </div> | 9 | </div> |
10 | {% include "menu.html" %} | ||
11 | <hr /> | 10 | <hr /> |
diff --git a/templates/list.html b/templates/list.html new file mode 100644 index 0000000..e63c6be --- /dev/null +++ b/templates/list.html | |||
@@ -0,0 +1,15 @@ | |||
1 | {% include "header.html" %} | ||
2 | |||
3 | <table id="t01"> | ||
4 | <tr> | ||
5 | <th>Fingerprint</td> | ||
6 | <th>Balance</td> | ||
7 | </tr> | ||
8 | {% for user in users %} | ||
9 | <tr> | ||
10 | <td>{{ user.fingerprint }}</td> | ||
11 | <td>{{ user.balance }}</td> | ||
12 | <?tr> | ||
13 | {% endfor %} | ||
14 | </table> | ||
15 | {% include "footer.html" %} | ||