diff options
author | yigit sever | 2021-04-16 13:40:17 +0000 |
---|---|---|
committer | yigit sever | 2021-04-16 13:40:17 +0000 |
commit | c6b90ff7abe2122fbac8f9e1066bd8cecbf135cd (patch) | |
tree | 9835fb758c15d1ed36b95b950e23bf883da87738 /templates | |
parent | 9a9bc6522810d49a46f6762cca68daf81ba60390 (diff) | |
parent | e7cd705175abb820cd4bfdb28693615ef2171597 (diff) | |
download | gradecoin-c6b90ff7abe2122fbac8f9e1066bd8cecbf135cd.tar.gz gradecoin-c6b90ff7abe2122fbac8f9e1066bd8cecbf135cd.tar.bz2 gradecoin-c6b90ff7abe2122fbac8f9e1066bd8cecbf135cd.zip |
Merge pull request 'Add existing user get support' (#1) from usershow into main
Reviewed-on: https://git.yigitsever.com/yigit/gradecoin/pulls/1
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" %} | ||