{% extends "global/Page.html" %} {% load staticfiles otree %} {% load i18n %} {# ****************************************************************************************************************** #} {# *** STYLES *** #} {# ****************************************************************************************************************** #} {% block styles %} {% endblock %} {# ****************************************************************************************************************** #} {# *** SCRIPTS *** #} {# ****************************************************************************************************************** #} {% block scripts %} {% if Constants.small_pies == True or Constants.large_pies == True %} {% endif %} {% endblock %} {# ****************************************************************************************************************** #} {# *** TITLE *** #} {# ****************************************************************************************************************** #} {% block title %} Result {% endblock %} {# ****************************************************************************************************************** #} {# *** CONTENT *** #} {# ****************************************************************************************************************** #} {% block content %}
The following row was randomly chosen:

{% if Constants.one_choice_per_page == True and Constants.large_pies == True %}
{% for i,f,p in choice_to_pay %} {% if option_to_pay == 'A' %} {% elif option_to_pay == 'B' %} {% endif %} {% endfor %}
{% trans "Option A" %} {% trans "Option B" %}
{% with j=i|stringformat:"s" %} {% with pies_a="pie_a_"|add:j %}
{% endwith %} {% endwith %}
{% with j=i|stringformat:"s" %} {% with pies_b="pie_b_"|add:j %}
{% endwith %} {% endwith %}
{% else %}
{% if Constants.small_pies == True %} {% endif %} {% if Constants.small_pies == True %} {% endif %} {% for i,f,p in choice_to_pay %} {% if Constants.small_pies == True %} {% endif %} {% if Constants.small_pies == True %} {% endif %} {% endfor %}
{% trans "Option A" %} {% trans "Option B" %}
{% with j=i|stringformat:"s" %} {% with pies_a="pie_a_"|add:j %}
{% endwith %} {% endwith %}
Play the game
{% if option_to_pay == 'A' %}
{% elif option_to_pay == 'B' %}
{% endif %}
receive {{ p }} points
{% with j=i|stringformat:"s" %} {% with pies_b="pie_b_"|add:j %}
{% endwith %} {% endwith %}
{% endif %}

{% blocktrans trimmed with option_to_pay=option_to_pay %} As you can see, you preferred option {{ option_to_pay }} in this row. {% endblocktrans %}

{% blocktrans trimmed with payoff=payoff %} Therefore you will now play the game. {% endblocktrans %}

{% next_button %} {% endblock %}