{% extends "global/Page.html" %} {% load otree static %} {# ****************************************************************************************************************** #} {# *** STYLES *** #} {# ****************************************************************************************************************** #} {% block styles %} {% endblock %} {% block head_title %} FL02 {% endblock %} {% block title %} {% endblock %} {% block content %} {# ****************************************************************************************************************** #} {# *** CONSIGNE *** #} {# ****************************************************************************************************************** #} {# *** CONSIGNE EN FONCTION DES CONDITIONS *** #}
| Ligne | OPTION A | je préfère l'option A | je préfère l'option B | OPTION B |
| {{ nb_choix }} | {# *** LOTERIE A *** #}
{# *** LOTERIE A GAIN *** #}
{% if player.GAIN == 1 %}
{% if player.P1 > 1 and player.P1 < 99 %}
Boules numérotées entre 1 et {{ player.P1 }} :
{{ player.X1|stringformat:".1f" }}€ Boules numérotées entre {{ player.P1|add:1 }} et 100 : {{ player.X2|stringformat:".1f" }}€ {% elif player.P1 == 1 %} Boule avec le nombre 1 : : {{ player.X1|stringformat:".1f" }}€ Boules numérotées entre {{ player.P1|add:1 }} et 100 : {{ player.X2|stringformat:".1f" }}€ {% elif player.P1 == 0 %} Boules numérotées entre {{ player.P1|add:1 }} et 100: {{ player.X2|stringformat:".1f" }}€ {% elif player.P1 == 99 %} Boules numérotées entre 1 and {{ player.P1 }}: {{ player.X1|stringformat:".1f" }}€ Boules numérotées entre {{ player.P1|add:1 }}: {{ player.X2|stringformat:".1f" }}€ {% elif player.P1 == 100 %} Boules numérotées entre 1 and {{ player.P1 }}: {{ player.X1|stringformat:".1f" }}€ {% endif %} {# *** LOTERIE A LOSS *** #} {% elif player.GAIN == 0 %} {% if player.P1 > 1 and player.P1 < 99 %} Boules numérotées entre 1 et {{ player.P1 }} : {{ player.X1|stringformat:".1f" }}€ Boules numérotées entre {{ player.P1|add:1 }} et 100 : {{ player.X2|stringformat:".1f" }}€ {% elif player.P1 == 1 %} Boule avec le nombre 1 : : {{ player.X1|stringformat:".1f" }}€ Boules numérotées entre {{ player.P1|add:1 }} et 100 : {{ player.X2|stringformat:".1f" }}€ {% elif player.P1 == 0 %} Boules numérotées entre {{ player.P1|add:1 }} et 100: {{ player.X2|stringformat:".1f" }}€ {% elif player.P1 == 99 %} Boules numérotées entre 1 and {{ player.P1 }}: {{ player.X1|stringformat:".1f" }}€ Boules numérotées entre {{ player.P1|add:1 }}: {{ player.X2|stringformat:".1f" }}€ {% elif player.P1 == 100 %} Boules numérotées entre 1 and {{ player.P1 }}: {{ player.X1|stringformat:".1f" }}€ {% endif %} {% endif %} |
{# *** CHOIX *** #}
{# *** LOTERIE B *** #} |
{# *** LOTERIE B GAIN *** #}
{% if player.GAIN == 1 %}
{% if player.P1_B > 1 and player.P1 < 99 %}
Boules numérotées entre 1 et {{ player.P1_B }} :
{{ X1_B|stringformat:".1f" }}€ Boules numérotées entre {{ player.P1_B|add:1 }} et 100 : {{ X2_B|stringformat:".1f" }}€ {% elif player.P1_B == 1 %} Boule avec le nombre 1 : : {{ X1_B|stringformat:".1f" }}€ Boules numérotées entre {{ player.P1_B|add:1 }} et 100 : {{ X2_B|stringformat:".1f" }}€ {% elif player.P1_B == 0 %} Boules numérotées entre {{ player.P1_B|add:1 }} et 100: {{ X2_B|stringformat:".1f" }}€ {% elif player.P1_B == 99 %} Boules numérotées entre 1 and {{ player.P1_B }}: {{ X1_B|stringformat:".1f" }}€ Boules numérotées entre {{ player.P1_B|add:1 }}: {{ X2_B|stringformat:".1f" }}€ {% elif player.P1_B == 100 %} Boules numérotées entre 1 and {{ player.P1_B }}: {{ X1_B|stringformat:".1f" }}€ {% endif %} {# *** LOTERIE B LOSS *** #} {% elif player.GAIN == 0 %} {% if player.P1_B > 1 and player.P1 < 99 %} Boules numérotées entre 1 et {{ player.P1_B }} : {{ X1_B|stringformat:".1f" }}€ Boules numérotées entre {{ player.P1_B|add:1 }} et 100 : {{ X2_B|stringformat:".1f" }}€ {% elif player.P1_B == 1 %} Boule avec le nombre 1 : : {{ X1_B|stringformat:".1f" }}€ Boules numérotées entre {{ player.P1_B|add:1 }} et 100 : {{ X2_B|stringformat:".1f" }}€ {% elif player.P1_B == 0 %} Boules numérotées entre {{ player.P1_B|add:1 }} et 100: {{ X2_B|stringformat:".1f" }}€ {% elif player.P1_B == 99 %} Boules numérotées entre 1 and {{ player.P1_B }}: {{ X1_B|stringformat:".1f" }}€ Boules numérotées entre {{ player.P1_B|add:1 }}: {{ X2_B|stringformat:".1f" }}€ {% elif player.P1_B == 100 %} Boules numérotées entre 1 and {{ player.P1_B }}: {{ X1_B|stringformat:".1f" }}€ {% endif %} {% endif %} |
|