{% extends "global/Page.html" %} {% load staticfiles otree %} {% block app_styles %} {% endblock %} {% block content %}

{{experiment_name}} (Results) - This is round {{ round_num }}

{% for g in group.in_all_rounds %} {% endfor %} {% for p in player.in_all_rounds %} {% endfor %} {% for o in player.get_others_in_group %} {% for p in o.in_all_rounds %} {% endfor %} {% endfor %} {% for g in group.in_all_rounds %} {% endfor %}
Round{{ g.round_number }}
Your Contribution{{ p.contribution }}
Player {{ o.id_in_group }} {% if p.contribution %} {{ p.contribution }} {% endif %}
Total Contribution{{ g.total_contribution }}
Earnings history including punishment and reward
{% for p in player.in_all_rounds %} {% endfor %} {% for o in player.get_others_in_group %} {% for p in o.in_all_rounds %} {% endfor %} {% endfor %} {% for g in group.in_all_rounds %} {% endfor %} {% for p in player.in_all_rounds %} {% endfor %}
Your Earnings{{ p.individual_share_after_PR }}
Player {{ o.id_in_group }} {{ p.individual_share_after_PR }}
Group Total Earnings{{ g.total_payoff }}
Your Total Earnings{{ p.payoff }}
Manager has Punished/Rewarded
{% for g in group.get_players %} {% if g.id_in_group == 4 %} {% if player.id_in_group == 1 %} {% else %} {% endif %} {% for p in g.in_all_rounds %} {% endfor %} {% if player.id_in_group == 2 %} {% else %} {% endif %} {% for p in g.in_all_rounds %} {% endfor %} {% if player.id_in_group == 3 %} {% else %} {% endif %} {% for p in g.in_all_rounds %} {% endfor %} {% if player.id_in_group == 4 %} {% else %} {% endif %} {% for p in g.in_all_rounds %} {% endfor %} {% endif %} {% endfor %}
YouPlayer 1 {% if p.punish_1 %} -{{ Constants.punishment_amount }} {% elif p.reward_1 %} +{{ Constants.reward_amount }} {% endif %}
YouPlayer 2 {% if p.punish_2 %} -{{ Constants.punishment_amount }} {% elif p.reward_2 %} +{{ Constants.reward_amount }} {% endif %}
YouPlayer 3 {% if p.punish_3 %} -{{ Constants.punishment_amount }} {% elif p.reward_3 %} +{{ Constants.reward_amount }} {% endif %}
YouPlayer 4 {% if p.punish_4 %} -{{ Constants.punishment_amount }} {% elif p.reward_4 %} +{{ Constants.reward_amount }} {% endif %}
{% next_button %} {% endblock %}