from . import models from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants class q1(Page): # timeout_seconds = 300 form_model = models.Player form_fields = [ 'q1_1', 'q1_2', 'q1_3', 'q1_4', # 'q1_5', ] class q12(Page): # timeout_seconds = 300 form_model = models.Player form_fields = [ 'q2_1_1', 'q2_1_2', 'q2_1_3', 'q2_1_4', 'q2_1_5', 'q11_1', 'q11_2', 'q11_3', 'q11_4', 'q2_12_1', 'q2_12_2', 'q2_12_3', 'q2_12_4', 'q2_12_5', 'q12_1', 'q12_2', 'q12_3', 'q12_4', ] class q2(Page): # timeout_seconds = 300 form_model = models.Player form_fields = [ 'q2_2_1', 'q2_2_2', 'q2_2_3', 'q2_2_4', 'q2_2_5', 'q2_3_1', 'q2_3_2', 'q2_3_3', 'q2_3_4', 'q2_3_5', 'q2_4_1', 'q2_4_2', 'q2_4_3', 'q2_4_4', 'q2_4_5', 'q13_1', 'q13_2', 'q13_3', 'q13_4', ] class q3(Page): # timeout_seconds = 300 form_model = models.Player form_fields = [ 'q3_5_1', 'q3_5_2', 'q3_5_3', 'q3_5_4', 'q3_5_5', 'q3_6_1', 'q3_6_2', 'q3_6_3', 'q3_6_4', 'q3_6_5', 'q3_6_6', 'q3_6_7', 'q3_6_8', 'q3_6_9', 'q3_6_10', ] class Demographics(Page): # timeout_seconds = 300 form_model = models.Player form_fields = [ 'q_gender', 'q_age', 'q_country', 'q_aca', 'q_INK', 'q_INS', 'q_MAR', 'q_CHI', 'qr_3', ] def before_next_page(self): self.player.set_payoff() class end_game(Page): pass page_sequence = [ # q1, # q12, # q2, q3, Demographics, end_game, ]