from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer ) author = 'Eveline Vandewal' doc = """ Survey """ class Constants(BaseConstants): name_in_url = 'CTBS1_Part4' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): colors_reversed = models.IntegerField() roles_reversed = models.IntegerField() age = models.IntegerField() gender = models.IntegerField( blank=True, choices=[ [1, 'Female'], [2, 'Male'], [3, 'Other'] ], widget=widgets.RadioSelect ) nationality = models.StringField() study = models.StringField() course = models.IntegerField( choices=[ [1, 'Yes'], [2, 'No'] ], widget=widgets.RadioSelect ) question6 = models.IntegerField() question7 = models.IntegerField( choices=[ [1, 'Yes'], [2, 'No'] ], widget=widgets.RadioSelect ) question8 = models.IntegerField( choices=[1, 2, 3, 4, 5, 6, 7], widget=widgets.RadioSelect ) question9 = models.IntegerField( choices=[1, 2, 3, 4, 5, 6, 7], widget=widgets.RadioSelect ) question10 = models.IntegerField( choices=[1, 2, 3, 4, 5, 6, 7], widget=widgets.RadioSelect ) question11 = models.IntegerField( choices=[1, 2, 3, 4, 5, 6, 7], widget=widgets.RadioSelect ) question12 = models.IntegerField( choices=[ [1, 'Yes'], [2, 'No'] ], widget=widgets.RadioSelect ) question13 = models.IntegerField( choices=[ [1, 'Yes'], [2, 'No'] ], widget=widgets.RadioSelect ) question14 = models.IntegerField( blank=True, choices=[ [1, 'Yes'], [2, 'No'] ], widget=widgets.RadioSelect ) rank1_1 = models.IntegerField( label='You earn 530 points and your interaction partner earns 750 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank1_2 = models.IntegerField( label='You earn 420 points and your interaction partner earns 530 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank1_3 = models.IntegerField( label='You earn 640 points and your interaction partner earns 420 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank1_4 = models.IntegerField( label='You earn 530 points and your interaction partner earns 640 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank2_1 = models.IntegerField( label='Your interaction partner earns 750 points and you earn 530 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank2_2 = models.IntegerField( label='Your interaction partner earns 530 points and you earn 420 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank2_3 = models.IntegerField( label='Your interaction partner earns 420 points and you earn 640 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank2_4 = models.IntegerField( label='Your interaction partner earns 640 points and you earn 530 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank3_1 = models.IntegerField( label='You earn 660 points and your interaction partner earns 400 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank3_2 = models.IntegerField( label='You earn 400 points and your interaction partner earns 660 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank3_3 = models.IntegerField( label='You earn 400 points and your interaction partner earns 530 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank3_4 = models.IntegerField( label='You earn 530 points and your interaction partner earns 790 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank4_1 = models.IntegerField( label='Your interaction partner earns 400 points and you earn 660 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank4_2 = models.IntegerField( label='Your interaction partner earns 660 points and you earn 400 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank4_3 = models.IntegerField( label='Your interaction partner earns 530 points and you earn 400 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) rank4_4 = models.IntegerField( label='Your interaction partner earns 790 points and you earn 530 points.', choices=[1, 2, 3, 4], widget=widgets.RadioSelect ) first_name = models.StringField() last_name = models.StringField() address = models.StringField() city = models.StringField() country = models.StringField() dob = models.StringField() iban = models.StringField() email = models.StringField(blank=True)