{% extends "global/Page.html" %} {% load staticfiles otree %} {% load i18n %} {# ****************************************************************************************************************** #} {# *** STYLES *** #} {# ****************************************************************************************************************** #} {% block styles %} {% endblock %} {# ****************************************************************************************************************** #} {# *** TITLE *** #} {# ****************************************************************************************************************** #} {% block title %} {% trans "Results" %} {% endblock %} {# ****************************************************************************************************************** #} {# *** CONTENT *** #} {# ****************************************************************************************************************** #} {% block content %}
{% blocktrans trimmed %} For your payoff and the payoff of the other person, the following decision problem has been randomly chosen: {% endblocktrans %}
{# ------------------------------------------------------------------------------------------------------- #} {# --- decision to pay #} {# ------------------------------------------------------------------------------------------------------- #} {% for field, xy_a, xy_i, e_a, e_i, decision, player in rows_to_pay %}
{% if player == 1 %} {% if id_in_group == 1 %} {% trans "Your Decision" %} {% elif id_in_group == 2 %} {% trans "Player A's Decision" %} {% endif %} {% elif player == 2 %} {% if id_in_group == 1 %} {% trans "Player B's Decision" %} {% elif id_in_group == 2 %} {% trans "Your Decision" %} {% endif %} {% endif %}
{% if player == 1 %} {% if id_in_group == 1 %} {% elif id_in_group == 2 %} {% endif %} {% elif player == 2 %} {% if id_in_group == 1 %} {% elif id_in_group == 2 %} {% endif %} {% endif %}
{% trans "Option 'Left'" %} {% trans "Option 'Right'" %}
{% trans "Your Payoff" %} {% trans "Player B's Payoff" %} {% trans "Your Payoff" %} {% trans "Player B's Payoff" %}{% trans "Player A's Payoff" %} {% trans "Your Payoff" %} {% trans "Player A's Payoff" %} {% trans "Your Payoff" %}{% trans "Player B's Payoff" %} {% trans "Your Payoff" %} {% trans "Player B's Payoff" %} {% trans "Your Payoff" %}{% trans "Your Payoff" %} {% trans "Player A's Payoff" %} {% trans "Your Payoff" %} {% trans "Player A's Payoff" %}
{{ xy_a|c }} {{ xy_i|c }} {% if decision == 'L' %} {% elif decision == 'R' %} {% endif %} {{ e_a|c }} {{ e_i|c }}
{% with xy_a=xy_a|c xy_i=xy_i|c e_a=e_a|c e_i=e_i|c %} {% if player == id_in_group %} {% if decision == 'L' %} {% blocktrans trimmed %} You decided to chose option "Left".
Thus, you receive a payoff of {{ xy_a }} whereas the other player receives {{ xy_i }}. {% endblocktrans %} {% elif decision == 'R' %} {% blocktrans trimmed %} You decided to choose option "Right".
Thus, both you and the other player receive a payoff of {{ e_a }}. {% endblocktrans %} {% endif %} {% elif player != id_in_group %} {% if decision == 'L' %} {% blocktrans trimmed %} As indicated in the table above, the other player chose option "Left".
Accordingly, your payoff amounts to {{ xy_i }} whereas the other player receives a payoff equal to {{ xy_a }}. {% endblocktrans %} {% elif decision == 'R' %} {% blocktrans trimmed %} As indicated in the table above, the other player chose option "Right".
Accordingly, both the other player and you receive {{ e_i }}. {% endblocktrans %} {% endif %} {% endif %} {% endwith %}
{% endfor %} {% next_button %} {% endblock %}