from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'questionnaire' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): trick = models.LongStringField( label='Please share any of your trick/strategy/advice in getting higher earnings for the future participants in this game:' ) risk = models.IntegerField( label='', widget=widgets.Slider(attrs={'step': '1.00', 'min':'0','max':'10'}) ) loss_aversion = models.IntegerField( label='', widget=widgets.Slider(attrs={'step': '1.00', 'min': '0', 'max': '10'}) ) altruism = models.IntegerField( label='', widget=widgets.Slider(attrs={'step': '1.00', 'min': '0', 'max': '10'}) ) gender = models.IntegerField( label='Please choose your gender', choices=[(0,'Male'), (1,'Female')], widget=widgets.RadioSelectHorizontal ) age = models.IntegerField( label='How old are you?', min=18 ) ethnicity = models.IntegerField( label='What is your ethnicity?', choices=[(1,'American Indian or Native Alaskan'), (2, 'Black or African American'), (3, 'East Asian (Chinese, Korean, etc)'), (4, 'Hispanic or Latino'), (5, 'Middle Eastern'), (6, 'Pacificer Islander or Hawaiian'), (7, 'South Asian (India, Pakistan, etc)'), (8, 'White'), (9, 'Other') ] ) birthplace = models.IntegerField( label='Are you from Texas?', choices=[ (1,'Yes'),(0,'No') ] ) econ_major = models.IntegerField( label='Is your major one of the following: Economics, Agricultural Economics, Business/Finance ?', choices=[(1,'Yes'), (0,'No')], widget=widgets.RadioSelectHorizontal ) email = models.StringField( label='Please enter your TAMU email address. \ We collect your TAMU email address for matching your earnings and data from two parts of the experiment. \ Your decisions made during the experiment will remain anonymous, and your email address will be stored separately from the experimental data and remained confidential.' ) email2 = models.StringField( label='Please confirm by entering your email address again' )