{% extends "global/Page.html" %} {% load otree static %} {% load humanize %} {% load i18n %} {#--- STYLES ---------------------------------------------------------------------------------------------------------#} {% block styles %} {% endblock %} {#--- TITLE ----------------------------------------------------------------------------------------------------------#} {% block title %} {% blocktrans trimmed %} Results {% endblocktrans %} {% endblock %} {#--- CONTENT --------------------------------------------------------------------------------------------------------#} {% block content %}
{% for index, pos, price, player, realisation, payoff in results %} {% if pos == position %} {% else %} {% endif %} {% endfor %}
{% trans "Price" %} {% trans "Player" %} {% trans "Decision" %} {% trans "Payoff" %}
{% if pos == 1 %} {% trans "Initial Price" %} {% else %} {% trans "Price at Position" %} {{ pos }} {% endif %} {{ price|intcomma }} {{ exp_currency }} {{ index }} {% if realisation == 1 %} {% blocktrans trimmed %} buy {% endblocktrans %} {% elif realisation == 0 %} {% blocktrans trimmed %} don't buy {% endblocktrans %} {% endif %} {{ payoff }} {{ exp_currency }}
{% if graph == 'horizontal' %}
{% for index, price, xpoint in GameTree %} {% trans "Price" %} {{ index }} buy {% endfor %} {% for index, price, xpoint in GameTree %} don't buy {% endfor %} {% for str, xpoints in GTpayoffs_str %} {{ str }} {% endfor %} {% for str, xpoints in GTpayoffN %} {{ str }} {% endfor %}
{% elif graph == 'vertical' %}
{% for index, price, xpoint in GameTree %} Price {{ index }} buy {% endfor %} {% for index, price, xpoint in GameTree %} don't buy {% endfor %} {% for str, xpoints in GTpayoffs_str %} {{ str }} {% endfor %} {% for str, xpoints in GTpayoffN %} {{ str }} {% endfor %}
{% endif %}
{% next_button %}
{% endblock %}