from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) doc = '' class Constants(BaseConstants): name_in_url = 'Tacking_Survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): identification_number = models.StringField( label='What is your university identification number? (You may use a fake number here)' ) Mental_1 = models.IntegerField( choices=[ [1, '1 - not at all'], [2, '2'], [3, '3'], [4, '4'], [5, '5 - nearly every day'], ], label='Lately, how often have you been feeling down, depressed, or hopeless?', widget=widgets.RadioSelect, ) Mental_2 = models.BooleanField( choices=[[True, 'Yes'], [False, 'No']], label='Trouble falling or staying asleep, or sleeping too much', widget=widgets.RadioSelectHorizontal, ) Mental_3 = models.BooleanField( choices=[[True, 'Yes'], [False, 'No']], label='Little energy trying to work or study', widget=widgets.RadioSelectHorizontal, ) Mental_4 = models.BooleanField( choices=[[True, 'Yes'], [False, 'No']], label='Unwanted or racing thoughts', widget=widgets.RadioSelectHorizontal, ) Mental_5 = models.BooleanField( choices=[[True, 'Yes'], [False, 'No']], label='Being moved to tears easily', widget=widgets.RadioSelectHorizontal, ) Mental_6 = models.BooleanField( choices=[[True, 'Yes'], [False, 'No']], label='Trembling, tremor or fidgeting', widget=widgets.RadioSelectHorizontal, ) # Mental_7 = models.BooleanField( # choices=[[True, 'Yes'], [False, 'No']], # label='Teeth grinding', # widget=widgets.RadioSelectHorizontal, # ) Academic_1 = models.IntegerField( choices=[ [1, '1 - not at all'], [2, '2 '], [3, '3'], [4, '4'], [5, '5 - very much'], ], label="It's hard to stay motivated for my classes", widget=widgets.RadioSelect, ) Academic_2 = models.IntegerField( choices=[ [1, '1 - not at all'], [2, '2 '], [3, '3'], [4, '4'], [5, '5 - very much'], ], label='I am unable to keep up with my schoolwork', widget=widgets.RadioSelect, ) Academic_3 = models.IntegerField( choices=[ [0, "0 times"], [1, '1 time'], [2, '2 times '], [3, 'More than 2 times'], ], label='Did not turn in an assignment', widget=widgets.RadioSelect, ) Academic_4 = models.IntegerField( choices=[ [0, "0 times"], [1, '1 time'], [2, '2 times '], [3, 'More than 2 times'], ], label='Turned in an assignment late', widget=widgets.RadioSelect, ) Academic_5 = models.IntegerField( choices=[ [0, "0 times"], [1, '1 time'], [2, '2 times '], [3, 'More than 2 times'], ], label='Skipped class', widget=widgets.RadioSelect, ) Financial_1 = models.IntegerField( choices=[ [1, '1 - not at all'], [2, '2 '], [3, '3'], [4, '4'], [5, '5 - very much'], ], label='How much have you been bothered lately by financial problems or worries?', widget=widgets.RadioSelect, ) # Financial_2 = models.BooleanField( # choices=[[True, 'Yes'], [False, 'No']], # label='Check my bank account balance', # widget=widgets.RadioSelectHorizontal, # ) Financial_3 = models.IntegerField( choices=[[1, 'Yes'], [2, 'No'], [3, 'Not relevant']], label='Make a late payment on rent', widget=widgets.RadioSelectHorizontal, ) Financial_4 = models.IntegerField( choices=[[1, 'Yes'], [2, 'No'], [3, 'Not relevant']], label='Make a late payment on school expenses', widget=widgets.RadioSelectHorizontal, ) Financial_5 = models.IntegerField( choices=[[1, 'Yes'], [2, 'No'], [3, 'Not relevant']], label='Make a late payments on other bills', widget=widgets.RadioSelectHorizontal, ) Financial_6 = models.BooleanField( choices=[[True, 'Yes'], [False, 'No']], label='Make a deposit to avoid overdrawing my account', widget=widgets.RadioSelectHorizontal, ) Financial_7 = models.BooleanField( choices=[[True, 'Yes'], [False, 'No']], label='Postpone or avoid making a purchase', widget=widgets.RadioSelectHorizontal, ) Financial_8 = models.IntegerField( choices=[ [1, 'Not at all'], [2, 'A little'], [3, 'A lot'], [0, 'Not relevant'], ], label='I had to work more lately to make ends meet', widget=widgets.RadioSelect, ) Support_1 = models.IntegerField( choices=[ [1, '1 - not at all'], [2, '2 '], [3, '3'], [4, '4'], [5, '5 - very much'], ], label='Lately, I have been bothered by the stress of taking care of children, parents, or other family members.', widget=widgets.RadioSelect, ) Support_2 = models.IntegerField( choices=[ [1, '1 - not at all'], [2, '2 '], [3, '3'], [4, '4'], [5, '5 - very much'], ], label='I feel isolated and alone', widget=widgets.RadioSelect, ) comments = models.LongStringField(blank=True)