from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants #------------------------------------------------------------------------------------------------- #------------------------------------------------------------------------------------------------- #------------------------------------------------------------------------------------------------- class GeneralIntroduction(Page): pass #------------------------------------------------------------------------------------------------- #------------------------------------------------------------------------------------------------- #------------------------------------------------------------------------------------------------- # Here, we define that on the consent rules page, we use the variable 'consent_rules' that we defined in models, which is at the player level # We define its position in the html file: {% formfield player.consent_rules %} class Consent_rules(Page): form_model = 'player' form_fields = ['consent_rules'] #------------------------------------------------------------------------------------------------- #------------------------------------------------------------------------------------------------- #------------------------------------------------------------------------------------------------- class Distractions(Page): pass #------------------------------------------------------------------------------------------------- #------------------------------------------------------------------------------------------------- #------------------------------------------------------------------------------------------------- class Form(Page): pass #------------------------------------------------------------------------------------------------- #------------------------------------------------------------------------------------------------- #------------------------------------------------------------------------------------------------- # This defines the sequence in which our html files, in 'templates', will be displayed page_sequence = [GeneralIntroduction, Consent_rules, Distractions]