from otree.api import * #import Calculate_ARA as ARA c = Currency doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'PIT' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): #pass answer1 = models.IntegerField(label="回答:", min=0, max=100000) answer2 = models.IntegerField(label="回答:", min=0, max=100000) answer3 = models.IntegerField(label="回答:", min=0, max=100000) answer4 = models.IntegerField(label="回答:", min=0, max=100000) answer5 = models.IntegerField(label="回答:", min=0, max=100000) answer6 = models.IntegerField(label="回答:", min=0, max=100000) answer9 = models.IntegerField(label="回答:", min=0, max=100000) #Survey.htmlで用いるフォーム gender = models.StringField( choices=[['1', '男性'], ['0', '女性'], ['答えたくない', '答えたくない']], label='
Q1. あなたの性別を1つ選んでチェックを入れてください。
', widget=widgets.RadioSelect, blank=True ) age = models.StringField( label="
Q2. あなたの年齢をお答えください。
", choices = [['18', '18歳'], ['19', '19歳'],['20', '20歳'],['21', '21歳'],['22', '22歳'],['23以上', '23歳以上']], blank=True, widget=widgets.RadioSelect, ) crt_bat = models.IntegerField( #Survey.htmlに記載 ) crt_widget = models.IntegerField( #Survey.htmlに記載 ) crt_lake = models.IntegerField( #Survey.htmlに記載 ) experient1 = models.StringField( choices = [["1","ある"],["0","ない"],["答えたくない", "答えたくない"]], label = '''
Q6. あなたは今までに、落下・水没などによってスマートフォンを壊した経験はありますか?当てはまるものを一つお答えください。
''', blank = True, widget=widgets.RadioSelect ) experient2 = models.StringField( choices = [["1","ある"],["0","ない"],["答えたくない", "答えたくない"]], label = '''
Q7. あなたは今までに海外旅行をした経験はありますか?当てはまるものを一つお答えください。
''', blank = True, widget=widgets.RadioSelect ) experient3 = models.StringField( choices = [["1","ある"],["0","ない"],["答えたくない", "答えたくない"]], label = '''
Q8. あなたは今までに、1日以上入院をした経験がありますか?当てはまるものを一つお答えください。
''', blank = True, widget=widgets.RadioSelect ) experient4 = models.StringField( choices = [["1","ある"],["0","ない"],["答えたくない", "答えたくない"]], label = '''
Q9. あなたは現在、恋人がいますか?
または、恋人がいた経験がありますか?当てはまるものを一つお答えください。
''', blank = True, widget=widgets.RadioSelect ) experient5 = models.StringField( choices = [["1","ある"],["0","ない"],["答えたくない", "答えたくない"]], label = '''
Q10. あなたは現在、移動手段として日常的に自転車を使っていますか?当てはまるものを一つお答えください。
''', blank = True, widget=widgets.RadioSelect ) #Imaginationページの回答 imagination1 = models.IntegerField( #Imagination1.htmlに記載 ) imagination2 = models.IntegerField( #Imagination1.htmlに記載 ) imagination3 = models.IntegerField( #Imagination1.htmlに記載 ) imagination4 = models.IntegerField( #Imagination1.htmlに記載 ) imagination5 = models.IntegerField( #Imagination1.htmlに記載 ) # PAGES class MyPage(Page): pass #class MyWaitPage(WaitPage): # after_all_players_arrive = 'set_payoffs' #class ResultsWaitPage(WaitPage): # pass class Results(Page): pass class Experiment1(Page): #pass form_model = 'player' form_fields = ['answer1'] class Experiment2(Page): #pass form_model = 'player' form_fields = ['answer2'] class Experiment3(Page): #pass form_model = 'player' form_fields = ['answer3'] class Experiment4(Page): #pass form_model = 'player' form_fields = ['answer4'] class Experiment5(Page): #pass form_model = 'player' form_fields = ['answer5'] class Experiment6(Page): #pass form_model = 'player' form_fields = ['answer6'] class Experiment9(Page): #pass form_model = 'player' form_fields = ['answer9'] class Survey(Page): form_model = 'player' form_fields = [ 'gender', 'age', 'crt_bat', 'crt_widget', 'crt_lake', 'experient1', 'experient2', 'experient3', 'experient4', 'experient5' ] class Imagination1(Page): form_model = 'player' form_fields = ['imagination1'] class Imagination2(Page): form_model = 'player' form_fields = ['imagination2'] class Imagination3(Page): form_model = 'player' form_fields = ['imagination3'] class Imagination4(Page): form_model = 'player' form_fields = ['imagination4'] class Imagination5(Page): form_model = 'player' form_fields = ['imagination5'] #慶應 実験 page_sequence = [ MyPage, Experiment1, Imagination1, Experiment2, Imagination2, Experiment3, Imagination3, Experiment4, Imagination4, Experiment5, Imagination5, Experiment6, Survey, Results]