-
Notifications
You must be signed in to change notification settings - Fork 0
/
oldindex.html
53 lines (50 loc) · 1.31 KB
/
oldindex.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
{% autoescape true %}
<html>
<head>
<link type="text/css" rel="stylesheet" href="/css/main.css" />
</head>
<body>
{{username}}
<a href="{{ url|safe }}">{{ url_linktext }}</a>
<hr>
<table>
<tr>
<th>From</th>
<th>To</th>
<th>Date</th>
<th>Quantity</th>
<th>Description</th>
</tr>
{% for soz_transaction in soz_transactions %}
<tr>
<td>{{ soz_transaction.from_user.nickname() }}</td>
<td>
{% if soz_transaction.to_user %}
{{ soz_transaction.to_user.nickname() }}
{% endif %}
</td>
<td>
{{ soz_transaction.date.strftime("%Y/%m/%d") }}
</td>
<td>
{{ soz_transaction.quantity }}
</td>
<td><blockquote>{{ soz_transaction.description }}</blockquote></td>
</tr>
{% endfor %}
</table>
<form action="/soz" method="post">
<div>
Quantity:<br /><input type="text" name="quantity" />
</div>
<div>
Description:<br/><textarea name="description" rows="3" cols="30"></textarea>
</div>
{% if users.get_current_user() %}
<div><input type="submit" value="Submit"></div>
{% endif %}
</form>
</body>
</html>
{% endautoescape %}