{% extends "global/Page.html" %} {% load staticfiles otree_tags %} {% load staticfiles %} {% block title %} Results {% endblock %} {% block content %} {% for lvl in Constants.difficulty_levels %} {% if forloop.counter == group.min_group %} {% for row in Constants.payoffmatrix %} {% if forloop.counter == player.problem_difficulty %} {% else %} {% endif %} {% if forloop.first %} {% endif %} {% for item in row %} {% if forloop.counter == group.min_group %} {% if forloop.parentloop.counter == player.problem_difficulty %} {% else %} {% endif %} {% else %} {% endif %} {% endfor %} {% endfor %}
Minimum choice in group
{{lvl}} {% else %} {{lvl}} {% endif %} {% endfor %}
Own choice {{forloop.counter}} {{item}} {{item}} {{item}}
{% if is_control %}

Your level of effort shown in yellow was: {{player.problem_difficulty}}

The minimum effort of the group shown in red was: {{group.min_group}}

As shown in the payoff matrix above, you earned: {{player.payoff}}

{% endif %}

{% if not is_control %}

Players:

{% for p in group.get_players %} {% if p.id_in_group == player.id_in_group %} {%if p.problem_difficulty == group.min_group%} {% else %} {% endif %} {% else %} {% if p.problem_difficulty == group.min_group %} {% else %} {% endif %} {% endif %} {% endfor %}
Level of effort Payoff
{{p.problem_difficulty}} effort units {{p.payoff}}
{{p.problem_difficulty}} effort units {{p.payoff}}
{{p.problem_difficulty}} effort units {{p.payoff}}
{{p.problem_difficulty}} effort units {{p.payoff}}
{% if player.problem_difficulty == group.min_group %}

(You chose the minimum effort, so you are highlighted in orange. Other players who chose the minimum effort are highlighted in red)

{% else %}

(You are highlighted in yellow, and the minimum effort is highlighted in red)

{% endif %} {% endif %}
{% formfield player.timeonpage_Results %}
{% endblock %}