from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants import datetime class Consent(Page): # form model and form fields form_model = 'player' form_fields = ['consent', 'paypal_id'] #timer_text = 'Time left to go through the instructions:' def vars_for_template(self): return { 'pretasks': True, 'experiment': True, } class NoConsent(Page): def is_displayed(self): return self.player.consent == 0 page_sequence = [Consent]