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_1' 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, )