from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) class Constants(BaseConstants): name_in_url = 'survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): gender = models.StringField( choices=[['Male', 'Male'], ['Female', 'Female']], label='What is your gender?', widget=widgets.RadioSelect, ) age = models.IntegerField(label='What is your age? Please enter the number below.', min=16, max=30) country = models.StringField(label='What country were you born in? Please enter the country name below.') field = models.StringField( choices=[['Management/Business', 'Management/Business'], ['Economics', 'Economics'], ['Humanities','Humanities'],['Liberal Arts','Liberal Arts'], ['Education','Education'],['Engineering','Engineering'], ['Science','Science'],['Social Sciences','Social Sciences'], ['Agriculture','Agriculture'],['Pharmacy','Pharmacy'], ['Nursing','Nursing'],['Other','Other']], label='What is the main field of study for your undergraduate degree?', widget=widgets.RadioSelect, ) racial = models.StringField( choices=[['Asian', 'Asian'], ['African', 'African'], ['Caucasian','Caucasian'],['Hispanic','Hispanic'], ['Other','Other']], label='What do you consider your primary racial identity?', widget=widgets.RadioSelect, ) GPA = models.StringField( choices = [['3.5 - 4.0','3.5 - 4.0'], ['3.0 - 3.5','3.0 - 3.5'], ['2.5 - 3.0', '2.5 - 3.0'], ['2.0 - 2.5', '2.0 - 2.5'], ['Below 2.0','Below 2.0']], label='What is your GPA?', widget=widgets.RadioSelect, ) Year = models.StringField( choices = [['First Year','First Year'], ['Second Year','Second Year'], ['Third Year', 'Third Year'], ['Fourth Year or Above', 'Fourth Year or Above'], ['Graduate Student','Graduate Student']], label='Are you an undergraduate student (which year) or a graduate student?', widget=widgets.RadioSelect, )