from otree.api import * c = cu doc = '' class C(BaseConstants): NAME_IN_URL = 'Demographics' 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(choices=[['Male', 'Male'], ['Female', 'Female'], ['Other', 'Other']], label='What is your gender', widget=widgets.RadioSelect) education = models.IntegerField(choices=[[1, 'First year Bachelor student'], [2, 'Second year Bachelor student'], [3, 'Third year Bachelor student'], [4, 'Fourth year Bachelor student'], [5, 'Master student'], [6, 'Phd student'], [7, 'Other']], label='I am currently', widget=widgets.RadioSelect) study_field = models.IntegerField(choices=[[1, 'Art, Humanities or Languages'], [2, 'Business: Economics'], [3, 'Business: (International) Business Administration'], [4, 'Business: Finance or Accounting'], [5, 'Business: Marketing, Management or Other'], [6, 'Business: Supply Chain and Operations'], [7, 'Econometrics & Operations Research'], [8, 'Education, Psychology or Social Sciences'], [9, 'Engineering or Physical Sciences'], [10, 'Computer Science or Data Science'], [11, 'Law, Dentistry or Medicine'], [12, 'Other']], label='Which best describes your major field of study', widget=widgets.RadioSelect) course_SCM = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Have you taken (or are you currently taking) a course in supply chain or operations management?', widget=widgets.RadioSelect) course_Data = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Have you taken (or are you currently taking) a course in business analytics or data science?', widget=widgets.RadioSelect) experience = models.IntegerField(label='How many years of professional work experience do you have?', max=50, min=0) class Demographics(Page): form_model = 'player' form_fields = ['age', 'gender', 'education', 'study_field', 'course_SCM', 'experience'] page_sequence = [Demographics]