from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'David Lucius' doc = """ created by: David Lucius (david.lucius@posteo.de) """ class Constants(BaseConstants): name_in_url = 'FINAL_SURVEY' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): # Screen: FinalSurveyQuestionnaire ID_01 = models.StringField(max_length=1) ID_02 = models.StringField(max_length=1) ID_03 = models.StringField(max_length=1) ID_04 = models.StringField(max_length=1) ID_05 = models.IntegerField(min=0, max=3) ID_06 = models.IntegerField(min=0, max=9) ID_07 = models.StringField(max_length=1) ID_08 = models.StringField(max_length=1) AGE = models.IntegerField(min=16, max=120) GENDER = models.IntegerField( choices=[ [1, 'Männlich'], [2, 'Weiblich'], [3, 'Divers'] ], widget=widgets.RadioSelect ) TRAINING_PROGRAM_01 = models.LongStringField() TRAINING_PROGRAM_02 = models.IntegerField( choices=[ [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'] ], widget=widgets.RadioSelectHorizontal ) TRAINING_PROGRAM_03 = models.IntegerField( choices=[ [-4, '-4'], [-3, '-3'], [-2, '-2'], [-1, '-1'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'] ], widget=widgets.RadioSelectHorizontal ) TRAINING_PROGRAM_04 = models.IntegerField( choices=[ [-4, '-4'], [-3, '-3'], [-2, '-2'], [-1, '-1'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'] ], widget=widgets.RadioSelectHorizontal ) TRAINING_PROGRAM_05 = models.IntegerField( choices=[ [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'] ], widget=widgets.RadioSelectHorizontal ) TRAINING_PROGRAM_06 = models.IntegerField( choices=[ [-4, '-4'], [-3, '-3'], [-2, '-2'], [-1, '-1'], [0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'] ], widget=widgets.RadioSelectHorizontal ) TRAINING_PROGRAM_07 = models.IntegerField( choices=[ [1, 'Ja'], [0, 'Nein'] ], widget=widgets.RadioSelect ) TRAINING_PROGRAM_08 = models.LongStringField() TRAINING_PROGRAM_09 = models.LongStringField()