from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Intro(Page): def is_displayed(self): return self.subsession.round_number == 1 class Survey(Page): def is_displayed(self): return self.subsession.round_number == 1 form_model = 'player' form_fields = ['gender', 'age', 'identification', 'country'] class Choice(Page): form_model = 'player' form_fields = ['lottery'] class Noplay(Page): # participants can skip rounds def is_displayed(self): return self.player.lottery == "No" class ResultsWaitPage(WaitPage): def after_all_players_arrive(self): pass class Results(Page): pass page_sequence = [Intro, Survey, Choice, Noplay, ResultsWaitPage, Results]