{% load otree static %} {% ifequal player.role "buyer" %}
Counterpart
Seller S{{ part_value_cost }}
COST
{% for p in other_players %}
{% if p.active %}
{% ifnotequal p.role player.role %}
{% if p.traded%}Already Traded{% else %}Hasn't Traded{% endif %}
{% endifnotequal %}
{% endif %}
{% endfor %}
Seller S{{ p.value_cost }}
{{ p.value_cost }}VALUE
{% if p.traded%}Already Traded{% else %}Waiting To Trade{% endif %}
Counterpart
Buyer B{{ part_value_cost }}
VALUE
{% for p in other_players %}
{% if p.active %}
{% ifnotequal p.role player.role %}
{% if p.traded%}Already Traded{% else %}Hasn't Traded{% endif %}
{% endifnotequal %}
{% endif %}
{% endfor %}
Buyer B{{ p.value_cost }}
{{ p.value_cost }}VALUE
{% if p.traded%}Already Traded{% else %}Waiting To Trade{% endif %}