{% extends "global/Page.html" %} {% load staticfiles otree %} {% load i18n %} {# ****************************************************************************************************************** #} {# *** STYLES *** #} {# ****************************************************************************************************************** #} {% block styles %} {% endblock %} {# ****************************************************************************************************************** #} {# *** SCRIPTS *** #} {# ****************************************************************************************************************** #} {% block scripts %} {% if Constants.small_pies == True or Constants.large_pies == True %} {% endif %} {% if Constants.enforce_consistency == True %} {% if Constants.one_choice_per_page == False and Constants.random_order == False %} {% endif %} {% endif %} {% endblock %} {# ****************************************************************************************************************** #} {# *** TITLE *** #} {# ****************************************************************************************************************** #} {% block title %} {% trans "Your Decision" %} {% endblock %} {# ****************************************************************************************************************** #} {# *** CONTENT *** #} {# ****************************************************************************************************************** #} {% block content %}
{% if Constants.one_choice_per_page == True and Constants.progress_bar == True %}
{% endif %} {% if Constants.one_choice_per_page == True and Constants.large_pies == True %}
{% for i,f,p in choices %} {% endfor %}
{% trans "Option A" %} {% trans "Option B" %}
{% with j=i|stringformat:"s" %} {% with pies_a="pie_a_"|add:j %}
{% endwith %} {% endwith %}
{% with j=i|stringformat:"s" %} {% with pies_b="pie_b_"|add:j %}
{% endwith %} {% endwith %}
{% else %}
{% if Constants.small_pies == True %} {% endif %} {% if Constants.small_pies == True %} {% endif %} {% for i,f,p in choices %} {% if Constants.small_pies == True %} {% endif %} {% if Constants.small_pies == True %} {% endif %} {% endfor %}
{% trans "Option A" %} {% trans "Option B" %}
{% with j=i|stringformat:"s" %} {% with pies_a="pie_a_"|add:j %}
{% endwith %} {% endwith %}
{{ lottery_a_hi }} {% trans "with a probability of " %}{{ p }},
{{ lottery_a_lo }} {% trans "otherwise" %}
{{ lottery_b_hi }} {% trans "with a probability of " %}{{ p }},
{{ lottery_b_lo }} {% trans "otherwise" %}
{% with j=i|stringformat:"s" %} {% with pies_b="pie_b_"|add:j %}
{% endwith %} {% endwith %}
{% next_button %} {% endif %}
{% endblock %}