from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Screen(Page): form_model = 'player' form_fields = ['submitted_answer'] def submitted_answer_choices(self): if self.round_number >= 9: return Constants.CHOICES2 else: return Constants.CHOICES1 class MyWaitPage(WaitPage): template_name = 'JobCharacteristics/WaitPage.html' def is_displayed(self): check = True return check class ResultsWaitPage(WaitPage): def is_displayed(self): return self.round_number == Constants.num_rounds def after_all_players_arrive(self): pass class Results(Page): def is_displayed(self): return self.round_number == Constants.num_rounds page_sequence = [ Screen, MyWaitPage, ResultsWaitPage, Results ]