from otree.api import Currency as c, currency_range from . import models from ._builtin import Page, WaitPage from .models import Constants from otreeutils.pages import AllGroupsWaitPage, ExtendedPage, UnderstandingQuestionsPage, APPS_DEBUG from otree.api import Currency as c, currency_range from . import models from ._builtin import Page, WaitPage class Start_round1(Page): pass class Instructions(Page): pass class lotteryinfo(Page): pass class Performer_info (Page): form_model = models.Player form_fields = ['BeliefExAnte1'] class belief_expost (Page): form_model = models.Player form_fields = ['DeciderPay1', 'DeciderPay2','BeliefExPost1','BeliefExPost2','BeliefExPost3'] def error_message(self, values): print('value is', values) if values["DeciderPay1"] + values["DeciderPay2"] > 2: return 'The sum of these numbers has to be lower or equal to $2 (separate amount of money)' class End_round (Page): pass #wait for all groups page_sequence = [ Start_round1, Performer_info, lotteryinfo, belief_expost, End_round, ] #Welcome, #ComputerTerminal, #Demographics, #instructions_overall, #instructions_task1, #instructions_beliefs, #instructions_task1_performer, #SomeUnderstandingQuestions, #NormalWaitPage1,