from otree.api import * doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'payment_game' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 INSTRUCTIONS_TEMPLATE = 'payment_game/instructions.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): smartphone_wtp1 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000 ) applewatch_wtp1 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) dyson_wtp1 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) macbook_wtp1 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) smartphone_wtp3 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) applewatch_wtp3 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) dyson_wtp3 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) macbook_wtp3 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) smartphone_wtp12 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) applewatch_wtp12 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) dyson_wtp12 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) macbook_wtp12 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) smartphone_wtp24 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) applewatch_wtp24 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) dyson_wtp24 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) macbook_wtp24 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) smartphone_wtp36 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) applewatch_wtp36 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) dyson_wtp36 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) macbook_wtp36 = models.PositiveIntegerField(verbose_name='(単位:円)', initial=None, min = 1, max = 1000000) # PAGES class Smartphone1(Page): form_model = 'player' form_fields = ['smartphone_wtp1'] class applewatch1(Page): form_model = 'player' form_fields = ['applewatch_wtp1'] class dyson1(Page): form_model = 'player' form_fields = ['dyson_wtp1'] class macbook1(Page): form_model = 'player' form_fields = ['macbook_wtp1'] class Smartphone3(Page): form_model = 'player' form_fields = ['smartphone_wtp3'] class applewatch3(Page): form_model = 'player' form_fields = ['applewatch_wtp3'] class dyson3(Page): form_model = 'player' form_fields = ['dyson_wtp3'] class macbook3(Page): form_model = 'player' form_fields = ['macbook_wtp3'] class Smartphone12(Page): form_model = 'player' form_fields = ['smartphone_wtp12'] class applewatch12(Page): form_model = 'player' form_fields = ['applewatch_wtp12'] class dyson12(Page): form_model = 'player' form_fields = ['dyson_wtp12'] class macbook12(Page): form_model = 'player' form_fields = ['macbook_wtp12'] class Smartphone24(Page): form_model = 'player' form_fields = ['smartphone_wtp24'] class applewatch24(Page): form_model = 'player' form_fields = ['applewatch_wtp24'] class dyson24(Page): form_model = 'player' form_fields = ['dyson_wtp24'] class macbook24(Page): form_model = 'player' form_fields = ['macbook_wtp24'] class Smartphone36(Page): form_model = 'player' form_fields = ['smartphone_wtp36'] class applewatch36(Page): form_model = 'player' form_fields = ['applewatch_wtp36'] class dyson36(Page): form_model = 'player' form_fields = ['dyson_wtp36'] class macbook36(Page): form_model = 'player' form_fields = ['macbook_wtp36'] class instructions(Page): pass class ResultsWaitPage(WaitPage): pass class Results(Page): pass page_sequence = [ instructions, Smartphone1, applewatch1, dyson1, macbook1, Smartphone3, applewatch3, dyson3, macbook3, Smartphone12, applewatch12, dyson12, macbook12, Smartphone24, applewatch24, dyson24, macbook24, Smartphone36, applewatch36, dyson36, macbook36, ]