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'] timeout_seconds = 420 class End_no_consent(Page): form_model = 'player' def is_displayed(self): return self.player.Consent == "No" class Instructions_1(Page): form_model = 'player' timeout_seconds = 360 def is_displayed(self): return self.player.Consent == "Yes" class Instructions_2(Page): form_model = 'player' form_fields = ['understanding'] timeout_seconds = 420 class CRT(Page): form_model = 'player' form_fields = ['crtwidget', 'crtlake', 'crtbat1'] page_sequence = [Consent, End_no_consent, Instructions_1, Instructions_2, CRT]