Add exam results page
This commit is contained in:
parent
3133fc1de2
commit
66967811c1
@ -111,6 +111,10 @@ def create_app(test_config=None):
|
||||
@app.get("/exam")
|
||||
def exam():
|
||||
return render_template("exams/level1.html")
|
||||
|
||||
@app.get("/examresult")
|
||||
def exam_result():
|
||||
return render_template("exams/level1_results.html", score=200, user_id=1, user_name="username")
|
||||
|
||||
def format_reading(reading: str) -> str:
|
||||
"""Apply bold to the part of the reading which the kanji represents; for kun, this can be
|
||||
|
@ -45,5 +45,6 @@
|
||||
"user_introduction": "User",
|
||||
"pfp": "Profile picture",
|
||||
"level_1_exam": "Level 1 exam",
|
||||
"exam": "Exam"
|
||||
"exam": "Exam",
|
||||
"results": "Results"
|
||||
}
|
@ -45,5 +45,6 @@
|
||||
"user_introduction": "利用者の",
|
||||
"pfp": "利用者アイコン",
|
||||
"level_1_exam": "一級試験",
|
||||
"exam": "試験"
|
||||
"exam": "試験",
|
||||
"results": "結果"
|
||||
}
|
@ -194,5 +194,8 @@
|
||||
{% endfor %}
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<a href="{{url_for('exam_result')}}">採点</a>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
193
kanken_online/templates/exams/level1_results.html
Normal file
193
kanken_online/templates/exams/level1_results.html
Normal file
@ -0,0 +1,193 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block header %}
|
||||
<h1>{% block title %}{{ localize("results") }}{% endblock %}</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<table>
|
||||
|
||||
</table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>受験級</th>
|
||||
<th>受験番号</th>
|
||||
<th>氏名</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>{{ user_id }}</td>
|
||||
<td>{{ user_name }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
<table><thead>
|
||||
<tr>
|
||||
<td>あなたの得点<br></td>
|
||||
<td colspan="2">{{ score }}<br></td>
|
||||
<td colspan="4" rowspan="2">
|
||||
{% if score >= 160 %}
|
||||
合格おめでとうございます。
|
||||
{% else %}
|
||||
合格まであと{{ 160-score }}点です。
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-0lax" colspan="3">今回の合格点 {{score}}/満点200点</td>
|
||||
</tr></thead>
|
||||
</table>
|
||||
|
||||
<table><thead>
|
||||
<tr>
|
||||
<th colspan="2" rowspan="2">設問事項<br></th>
|
||||
<th colspan="6">結果詳細(○→正解、×→不正解、─→無回答<br></th>
|
||||
<th rowspan="2">得点/満点<br></th>
|
||||
<th rowspan="2">全受験者の平均点<br></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>1~5</th>
|
||||
<th>6~10</th>
|
||||
<th>11~15</th>
|
||||
<th>16~20</th>
|
||||
<th>21~25</th>
|
||||
<th>26~30</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>読み<br></td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td>30点/30点</td>
|
||||
<td>30点</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>書き取り<br></td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>40点/40点</td>
|
||||
<td>40点</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td>語選択 書き取り</td>
|
||||
<td>○○○○○</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>10点/10点<br></td>
|
||||
<td>10点<br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4-1</td>
|
||||
<td>四字熟語 書き取り<br></td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>20点/20点</td>
|
||||
<td>20点</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4-2</td>
|
||||
<td>四字熟語 意味と読み<br></td>
|
||||
<td>○○○○○</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>10点/10点</td>
|
||||
<td>10点</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5</td>
|
||||
<td>熟字訓・当て字・読み<br></td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>10点/10点</td>
|
||||
<td>10点</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>6</td>
|
||||
<td>熟語の読み・一字訓読<br></td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>10点/10点</td>
|
||||
<td>10点</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>7</td>
|
||||
<td>対義語・類義語<br></td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>20点/20点<br></td>
|
||||
<td>20点<br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>8</td>
|
||||
<td>故事・諺・書き取り<br></td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>20点/20点<br></td>
|
||||
<td>20点<br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>9-1</td>
|
||||
<td>文章題 書き取り<br></td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>20点/20点</td>
|
||||
<td>20点</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>9-2</td>
|
||||
<td>文章題 読み<br></td>
|
||||
<td>○○○○○</td>
|
||||
<td>○○○○○</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>10点</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user