from otree.api import * c = cu doc = '' class C(BaseConstants): NAME_IN_URL = 'Disruption' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField(label='What is your age', max=125, min=13) gender = models.StringField(label='If comfortable, please indicate your identified gender.') is_planner = models.IntegerField(choices=[[0, 'Yes'], [1, 'No']], label='Are you presently employed in a demand or supply planning role?', widget=widgets.RadioSelect) job_title = models.StringField(label='What is your job title?') company_name = models.StringField(label='What company do you currently work for?') work_country = models.StringField(label='In what country do you work?') nationality = models.StringField(label='What is your nationality?') consent = models.IntegerField(choices=[[0, 'Yes'], [1, 'No']], label='Do you consent to participate in this experiment?', widget=widgets.RadioSelect) years_as_planner = models.StringField(label='How many years experience do you have in a demand or supply planning role?') class Consent(Page): form_model = 'player' form_fields = ['is_planner', 'years_as_planner', 'job_title', 'company_name', 'work_country', 'nationality', 'gender', 'consent'] class Instructions1(Page): form_model = 'player' class Instructions2(Page): form_model = 'player' class Instructions3(Page): form_model = 'player' page_sequence = [Consent, Instructions1, Instructions2, Instructions3]