Add participant ID

Collect participant ID at the beginning, store in database, export with
results.  Closes https://github.com/mattbk/changeblindness/issues/2.
This commit is contained in:
mattbk
2015-11-01 15:11:27 -06:00
parent 223c819138
commit 0da40716fc
4 changed files with 20 additions and 6 deletions

View File

@ -4,7 +4,12 @@
<header class="hero-unit">
<h1>Change blindness test</h1>
<p>We would like a few minutes of your time to help us with a test in change blindness. Your help is very much appreciated.</p>
<p><a class="btn btn-primary btn-large" href="{{ start_url }}">Get started &raquo;</a></p>
<form action="{{ start_url }}" method="post">
Name: <input type="text" name="participantid">
<input type="submit" value="Start">
</form>
<p><div class="fb-like" data-layout="button_count" data-width="450" data-show-faces="false" data-font="arial"></div></p>
<p><a href="https://twitter.com/share" class="twitter-share-button" data-via="RaymondJelierse" data-hashtags="vcd">Tweet</a></p>
</header>

View File

@ -54,6 +54,7 @@
<th>uid</th>
<th>date</th>
<th>host</th>
<th>participant</th>
<th>phase</th>
<th>x</th>
<th>y</th>
@ -67,6 +68,7 @@
<td>{{record.uid}}.</td>
<td>{{ record.datetime }}</td>
<td>{{ record.host }}</td>
<td>{{ record.participantid }}</td>
<td>{{ record.phase }}</td>
<td>{{ record.xcoordinate }}</td>
<td>{{ record.ycoordinate }}</td>

View File

@ -1,4 +1,4 @@
uid datetime host phase xcoordinate ycoordinate responsetime score
uid datetime host participant phase xcoordinate ycoordinate responsetime score
{% for record in data %}
{{record.uid}} {{record.datetime}} {{record.host}} {{record.phase}} {{record.xcoordinate}} {{record.ycoordinate}} {{record.responsetime}} {{record.score}}
{{record.uid}} {{record.datetime}} {{record.host}} {{record.participantid}} {{record.phase}} {{record.xcoordinate}} {{record.ycoordinate}} {{record.responsetime}} {{record.score}}
{% endfor %}