{% extends "global/Page.html" %}
{% load otree %}

{% block title %}

    YOUR GAIN (test page to disable)

{% endblock %}

{% block content %}
<div class="card bg-light m-3">
    <div class="card-body">



    </div></div>

<div class="card bg-light m-3">
    <div class="card-body">

        <p>
            The game is over.
            The randomly selected game is game number: {{ player.game_num_select}} // {{player.game_select_n}}
        </p>

            <center>GP  --------------------- </center>

        <p>
        The random draw is: {{player.tirageriskresult}}
        <br> Your investment in the risky asset: {{player.risk11_a}}
        <br> You kept: {{player.risk11_b}}
        <br> Your gain for this game is: {{player.gainrisk}} ECU(s) - (exchange rate: 1ECU = 0.8 EUROs)
        <br> Your gain in euros is: {{player.gainrisk_eur}} EUROS(s)
        </p>

            <center>BW  --------------------- </center>

         <p> The selected color is: {{player.tirage_color_n}}
        <br> Your winnings for this game are: {{player.gain_bw}} ECU(s) - (exchange rate: 1ECU = 0.8 EUROs)
         <br> Your gain in euros is: {{player.gain_bw_eur }} EUROS(s)
         </p>

            <center>MDG-asso  --------------------- </center>
        <p>
        The randomly selected round is: {{player.mdgasso_round_selected}}
                <br> Your endowment during this round was <b>{{player.mdgasso_dot1_select}} ECUs</b>.
                <br> The value of <b>S</b> was <b>{{player.mdgasso_s1_select}}</b>.
                <br> The value of <b>G</b> was <b>{{player.mdgasso_g1_select}}</b>.
                <br><br> You chose to keep <b>{{player.mdgasso_keep_select}} </b> POINTs and give <b>{{player.mdgasso_sent_select}} </b> POINTs to the organization.
                <br><br> Your gain is <b>{{player.mdgasso_gain_dgm}} POINTs ({{player.mdgasso_gain_dgm_eur}} EUROs)</b>.
                <br> The organization's gain is <b>{{player.mdgasso_gain_asso}} POINTs ({{player.mdgasso_gain_asso_eur}} EUROs)</b>.
                <br> Recall: - (exchange rate: 1 POINT = 0.1 EUROs)
        </p>


              <center>MDG-class  --------------------- </center>
        <p>

            Your role in this game is: {{player.dictatorYES_n}}

            <br> if player.dictatorYES == 1 :

            <br>

        The randomly selected round is: {{player.mdgclass_round_selected}}
                <br> Your endowment during this round was <b>{{player.mdgclass_dot1_select}} ECUs</b>.
                <br> The value of <b>S</b> was <b>{{player.mdgclass_s1_select}}</b>.
                <br> The value of <b>G</b> was <b>{{player.mdgclass_g1_select}}</b>.
                <br><br> You chose to keep <b>{{player.mdgclass_keep_select}} </b> POINTs and give <b>{{player.mdgclass_sent_select}} </b> POINTs to player 2.
                <br><br> Your gain is <b>{{player.mdgclass_gain_dgm}} POINTs ({{player.mdgclass_gain_dgm_eur}} EUROs)</b>.
                <br> Player 2's gain is <b>{{player.mdgclass_gain_joueur2}} POINTs ({{player.mdgclass_gain_joueur2_eur}} EUROs)</b>.
                <br> Recall: - (exchange rate: 1 POINT = 0.1 EUROs)
        </p>


            <br> if player.dictatorYES == 0 :

            <br> We must wait for the response of the second player before communicating your gain to you.
        An email will be sent to you shortly to announce your gain and the procedures for retrieving your gain.

        <p>

        </p>






</div>
</div>

    <p>{% next_button %}</p>



{% endblock %}