-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.html
44 lines (42 loc) · 1.2 KB
/
MainPage.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>당신은 무슨 일을 하였는가?</title>
</head>
<body>
<h1>MAIN PAGE</h1>
Hello! {{ current_username }}!
<hr/>
<p>
<fieldset>
<legend><b>한 일 추가</b></legend>
<form action="/addreport" method="post">
<input type="hidden" name="username" value="{{ current_username }}" />
<div>이름 : <b>{{ current_username }}</b></div>
<div>날짜 : <input type="date" name="writedatetime" value="{{ date_today }}"/></div>
<div>내용 <textarea name="contents" cols="100" rows="8"></textarea></div>
<div><input type="submit" value="입력" /></div>
</form>
</fieldset>
</p>
<p>
<fieldset>
<legend><b>내용들</b></legend>
<br>
{% for day, list in report_dict.iteritems() %}
<b>{{ day }}</b>
<hr/>
{% for report in list %}
<blockquote>
<div>이름 : <b>{{ report.username }}</b> ({{ report.writeTime.strftime("%Y-%m-%d %H:%M:%S") }})</div>
<div><blockquote>{{ report.report }}</blockquote></div>
</blockquote>
{% endfor %}
<hr/>
<br><br>
{% endfor %}
</fieldset>
</p>
</body>
</html>