{% load otree static %} {% ifequal player.role "buyer" %}

Counterpart
Seller S{{ part_value_cost }}

{{ 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 %}




{% for p in other_players %} {% if not p.active %} {% ifnotequal p.role player.role %}

Seller S{{ p.value_cost }}

{{ p.value_cost }}

VALUE
{% if p.traded%}Already Traded{% else %}Waiting To Trade{% endif %}

{% endifnotequal %} {% endif %} {% endfor %} {% else %}

Counterpart
Buyer B{{ part_value_cost }}

{{ 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 %}




{% for p in other_players %} {% if not p.active %} {% ifnotequal p.role player.role %}

Buyer B{{ p.value_cost }}

{{ p.value_cost }}

VALUE
{% if p.traded%}Already Traded{% else %}Waiting To Trade{% endif %}

{% endifnotequal %} {% endif %} {% endfor %} {% endifequal %}