from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class TransitionPage(Page): pass class GeneralInstructions(Page): form_model = 'player' def is_displayed(self): return self.player.AgPart == "Yes" class ConsentForm(Page): form_model = 'player' form_fields = ['AgPart','sign'] class EndNoConsent(Page): form_model = 'player' def is_displayed(self): return self.player.AgPart == "No" page_sequence = [ConsentForm,EndNoConsent,GeneralInstructions,TransitionPage]