{% extends "global/Page.html" %} {% load staticfiles otree %} {% load i18n %} {# ****************************************************************************************************************** #} {# *** STYLES *** #} {# ****************************************************************************************************************** #} {% block styles %} {% endblock %} {# ****************************************************************************************************************** #} {# *** TITLE *** #} {# ****************************************************************************************************************** #} {% block title %} {% trans "Result" %} {% endblock %} {# ****************************************************************************************************************** #} {# *** CONTENT *** #} {# ****************************************************************************************************************** #} {% block content %}
{% blocktrans trimmed %} The following decision was randomly chosen for your bonus payment:
{% endblocktrans %}

{% for i,f,p in choice_to_pay %} {% endfor %}
Option A You choose Option B
There are {{ num_balls }} balls in the bag. Each ball is either red, green, or blue. The computer will randomly choose one ball from this bag. You win £{{ winningamout }} if the chosen ball is and you win nothing otherwise. Option A Option B You win £{{ winningamout }} with the following probability and nothing otherwise.

{{ samplesize }} sample balls are drawn {{ replacement }}.
They include {{ unit }} red, {{ unit }} green, and {{ unit }} blue.

{% if option_to_pay == 'A' %}
{% elif option_to_pay == 'B' %}
{% endif %}
{{ p|floatformat:0 }}%

{% blocktrans trimmed with option_to_pay=option_to_pay %} As indicated above, you decided to choose Option {{ option_to_pay }} in this decision. {% endblocktrans %}

{% if option_to_pay == "A" %}

{% blocktrans trimmed %} Now the computer will randomly chose one ball from the bag. Please click on the "Next" button to see the result. {% endblocktrans %}

{% endif %} {% if option_to_pay == "B" %}

{% blocktrans trimmed %} Now the computer will run the lottery with the winning probability {{ probability }}. Please click on the "Next" button to see the result. {% endblocktrans %}

{% endif %}
{% next_button %} {% endblock %} {% block scripts %} {% endblock %}