{% extends "otree/BaseAdmin.html" %}

{% block title %}
    Data Export
{% endblock %}

{% block content %}
{% if apps %}
<table class="table">
    <thead>
        <tr>
            <th>App</th>
            <th>Data</th>
            <th>Documentation</th>
        </tr>
    </thead>
    <tbody>
    {% for app in apps %}
        <tr>
            <td>
                {{ app.name }}
            </td>
            <td>
                <a href="{% url 'export_csv' app.label %}"><span class="glyphicon glyphicon-download-alt"></span></a>
            </td>
            <td>
                <a href="{% url 'export_app_docs' app.label %}"><span class="glyphicon glyphicon-download-alt"></span></a>
            </td>
            <td>
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>
Time spent on each page can be downloaded <a href="{% url 'export_time_spent' %}">here</a>.
{% else %}
<p>No sessions has yet taken place</p>
{% endif %}

<br/>
<br/>

<h4>Citation requirement</h4>

<p>
    If you publish research conducted using oTree,
    you are required by the oTree license to cite <a href="http://dx.doi.org/10.1016/j.jbef.2015.12.001">this paper</a>.
</p>.


{% endblock %}
