from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) from django import forms class Constants(BaseConstants): name_in_url = 'anke' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): gender = models.StringField( choices=[['Male','男性'],['Female', '女性'], ['Other', 'その他'],['None', '無回答']], label='', widget=widgets.RadioSelectHorizontal, ) age = models.IntegerField( blank=True, label='', ) work1 = models.StringField( choices=[['Univ','学生'], ['Business','社会人'], ['Other','その他'],['None','無回答']], label='', widget=widgets.RadioSelectHorizontal, ) work2 = models.StringField( blank=True, label='' ) when = models.StringField( choices=[['UP','増加した'], ['DOWN','減少した'], ['Other','変わらない'],['None','無回答']], label='', widget = widgets.RadioSelectHorizontal, ) why = models.TextField( blank=True, label='' ) whatif = models.TextField( blank=True, label='' ) opinion = models.StringField( blank=True, label='' )