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 = 'thermal_comfort_2_2' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass def make_field(label): return models.IntegerField( choices=[ [1, ''], [2, ''], ], label=label, widget=widgets.RadioSelect, ) class Player(BasePlayer): tc_0 = models.IntegerField( choices=[ [1, 'weniger als 0,25l'], [2, 'zwischen 0,25 und 0,5l'], [3, 'zwischen 0,5 und 0,75l'], [4, 'zwischen 0,75 und 1l'], [5, 'mehr als 1l'], ] ) tc_1_1 = models.IntegerField( choices=[ [1, ''], [2, ''], ], widget=widgets.RadioSelectHorizontal, label =False, ) tc_1_2 = models.IntegerField( choices=[ [1, ''], [2, ''], ], widget=widgets.RadioSelectHorizontal, label =False, ) tc_1_3 = models.IntegerField( choices=[ [1, ''], [2, ''], ], widget=widgets.RadioSelectHorizontal, label =False, ) tc_1_4 = models.IntegerField( choices=[ [1, ''], [2, ''], ], widget=widgets.RadioSelectHorizontal, label =False, ) tc_1_5 = models.IntegerField( choices=[ [1, ''], [2, ''], ], widget=widgets.RadioSelectHorizontal, label =False, ) tc_2 = models.IntegerField( choices=[ [1, 'sehr kalt'], [2, 'kalt'], [3, 'kühl'], [4, 'weder kalt noch warm'], [5, 'etwas warm'], [6, 'warm'], [7, 'sehr warm'], ], widget=widgets.RadioSelectHorizontal ) tc_3 = models.IntegerField( label="Temperatur in °C", min=10, max=45, ) tc_4 = models.IntegerField( choices=[ [1, 'sehr unangenehm'], [2, 'unangenehm'], [3, 'etwas unangenehm'], [4, 'weder unangenehm noch angenehm'], [5, 'etwas angenehm'], [6, 'angenehm'], [7, 'sehr angenehm'], ], widget=widgets.RadioSelect ) tc_5 = models.IntegerField( choices=[ [1, 'Mehr Kleidung als gewünscht'], [2, 'Weder mehr noch weniger Kleidung als gewünscht'], [3, 'Weniger Kleidung als gewünscht'], ], )