from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Consent(Page): form_model = 'player' form_fields = ['consent'] class Thanks(Page): def is_displayed(self): return self.player.consent == 0 class Start(Page): def is_displayed(self): return self.player.consent == 1 page_sequence = [Consent, Thanks, Start]