Commit 89ba9abd authored by Kento HASEGAWA's avatar Kento HASEGAWA

Make it possible to save all the answers sent from clients (#9)

parent 4cffa912
......@@ -3,6 +3,8 @@
.DS_Store
*.txt
*.tmp
*.json
# Object files
*.o
......
This diff is collapsed.
......@@ -43,7 +43,7 @@ body{
#client-control-pane{
height: 330px;
overflow: scroll;
overflow-y: scroll;
}
#client-control-pane table th,
......
......@@ -63,7 +63,6 @@ var PynqManager = (function(){
}).done(function(res){
var answer = res;
$("#solving-question-status").text(answer["status"]);
$("#solved-result").text(answer["answer"]["answer"]);
$("#solved-client").text(answer["answer"]["client"]);
if (after !== null){
......
<h3>問題 【{{qname}}】</h3>
<p>
<button class="btn btn-primary btn-lg start-button" type="button" data-qname="{{qname}}">Start</button>
</p>
<div class="row">
<div class="col-6">
<h3>問題 【{{qname}}】</h3>
<p>
<button class="btn btn-primary btn-lg start-button" type="button" data-qname="{{qname}}">Start</button>
</p>
</div>
<div class="col-6">
<p>処理結果</p>
<table class="table table-bordered">
<tr>
<th>クライアント</th>
<th>Status</th>
</tr>
{% for c in clients %}
<tr>
<td>{{c}}</td>
<td></td>
</tr>
{% endfor %}
</table>
</div>
</div>
<div>
<h4>処理結果一覧</h4>
<table class="table table-bordered table-striped">
<tr>
<th>Timestamp</th>
<th>Client</th>
<th>Score</th>
</tr>
{% for v in qdata.answers %}
<tr>
<td>{{v.timestamp}}</td>
<td>{{v.client}}</td>
<td>{{v.nlcheck}}</td>
</tr>
{% endfor %}
</table>
</div>
<p>状況:<span id="solving-question-status">{{qdata.status}}</span></p>
<h4>結果</h4>
<p>クライアント:<span id="solved-client">{{qdata.answer.client}}</span></p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment