from . import models from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants class Demographics(Page): form_model = models.Player form_fields = ['q_country', 'q_age', 'q_gender', 'q_Ethnicity', 'q_ClassStatus', 'q_Major'] class CognitiveReflectionTest(Page): form_model = models.Player form_fields = ['q_AttCommunity1', 'q_AttCommunity2', 'q_AttCommunity3', 'q_AttMember1', 'q_AttMember2', 'q_AttMember3', 'q_SociallyAppro', 'q_SociallyInAppro'] def before_next_page(self): self.player.set_payoff() page_sequence = [ CognitiveReflectionTest, Demographics]