from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Instructions(Page): def is_displayed(self): return self.round_number == 1 class Question_tosca(Page): form_model = 'player' form_fields = ['answer_a', 'answer_b', 'answer_c', 'answer_d'] class Results(Page): form_model = 'player' form_fields = ['feedback'] def is_displayed(self): return self.round_number == Constants.num_rounds class completion_site(Page): def is_displayed(self): return self.round_number == Constants.num_rounds page_sequence = [ Instructions, Question_tosca, Results, completion_site ]