from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class welcome (Page): pass class instructionsWSC (Page): pass class w1 (Page): form_model = 'player' def get_form_fields(self): if (self.player.condition == "aApp"): return ['w1_aApp'] elif (self.player.condition == "iApp"): return ['w1_iApp'] elif (self.player.condition == "aAvd"): return ['w1_aAvd'] else: return ['w1_iAvd'] class w2 (Page): form_model = 'player' def get_form_fields(self): if (self.player.condition == "aApp"): return ['w2_aApp'] elif (self.player.condition == "iApp"): return ['w2_iApp'] elif (self.player.condition == "aAvd"): return ['w2_aAvd'] else: return ['w2_iAvd'] class w3 (Page): form_model = 'player' def get_form_fields(self): if (self.player.condition == "aApp"): return ['w3_aApp'] elif (self.player.condition == "iApp"): return ['w3_iApp'] elif (self.player.condition == "aAvd"): return ['w3_aAvd'] else: return ['w3_iAvd'] class w4 (Page): form_model = 'player' def get_form_fields(self): if (self.player.condition == "aApp"): return ['w4_aApp'] elif (self.player.condition == "iApp"): return ['w4_iApp'] elif (self.player.condition == "aAvd"): return ['w4_aAvd'] else: return ['w4_iAvd'] class w5 (Page): form_model = 'player' def get_form_fields(self): if (self.player.condition == "aApp"): return ['w5_aApp'] elif (self.player.condition == "iApp"): return ['w5_iApp'] elif (self.player.condition == "aAvd"): return ['w5_aAvd'] else: return ['w5_iAvd'] class w6 (Page): form_model = 'player' def get_form_fields(self): if (self.player.condition == "aApp"): return ['w6_aApp'] elif (self.player.condition == "iApp"): return ['w6_iApp'] elif (self.player.condition == "aAvd"): return ['w6_aAvd'] else: return ['w6_iAvd'] class w7 (Page): form_model = 'player' def get_form_fields(self): if (self.player.condition == "aApp"): return ['w7_aApp'] elif (self.player.condition == "iApp"): return ['w7_iApp'] elif (self.player.condition == "aAvd"): return ['w7_aAvd'] else: return ['w7_iAvd'] class w8 (Page): form_model = 'player' def get_form_fields(self): if (self.player.condition == "aApp"): return ['w8_aApp'] elif (self.player.condition == "iApp"): return ['w8_iApp'] elif (self.player.condition == "aAvd"): return ['w8_aAvd'] else: return ['w8_iAvd'] class f1(Page): form_model = 'player' form_fields = ['f1'] class f2(Page): form_model = 'player' form_fields = ['f2'] class f3(Page): form_model = 'player' form_fields = ['f3'] class f4(Page): form_model = 'player' form_fields = ['f4'] class f5(Page): form_model = 'player' form_fields = ['f5'] class f6(Page): form_model = 'player' form_fields = ['f6'] class f7(Page): form_model = 'player' form_fields = ['f7'] class f8(Page): form_model = 'player' form_fields = ['f8'] class f9(Page): form_model = 'player' form_fields = ['f9'] class f10(Page): form_model = 'player' form_fields = ['f10'] class f11(Page): form_model = 'player' form_fields = ['f11'] class f12(Page): form_model = 'player' form_fields = ['f12'] class instructionsSyllogism(Page): pass class s1(Page): form_model = 'player' form_fields = ['s1'] class s2(Page): form_model = 'player' form_fields = ['s2'] class s3(Page): form_model = 'player' form_fields = ['s3'] class s4(Page): form_model = 'player' form_fields = ['s4'] class s5(Page): form_model = 'player' form_fields = ['s5'] class s6(Page): form_model = 'player' form_fields = ['s6'] class s7(Page): form_model = 'player' form_fields = ['s7'] class s8(Page): form_model = 'player' form_fields = ['s8'] class demographics(Page): form_model = 'player' form_fields = ['age', 'gender', 'genderOther', 'ethnicity', 'ethnicityOther', 'eduYear', 'politics', 'party'] class feedback(Page): form_model = 'player' form_fields = ['studyFeedback'] class honesty(Page): form_model = 'player' form_fields = ['honesty'] class debrief (Page): pass page_sequence = [ welcome, instructionsWSC, w1, f1, f2, w2, f3, f4, w3, f5, f6, f7, f8, w4, f9, w5, f10, w6, f11, w7, f12, w8, instructionsSyllogism, s1, s2, s3, s4, s5, s6, s7, s8, demographics, feedback, honesty, debrief, ]