from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants class Intro1(Page): pass class Intro2(Page): pass class IntroInstructions(Page): pass class IntroInstructionsTask1(Page): pass class IntroInstructionsCq1(Page): form_model = 'player' form_fields = ['cq1_group_members', 'cq1_payoff_sucker', 'cq1_payoff_bothcoop', 'cq1_aggr_bothcoop', 'cq1_aggr_bothdef', 'cq1_highest_payoff', 'cq1_payments'] class IntroInstructionsTask1Recap(Page): def before_next_page(self): self.participant.vars['cq1_group_members'] = self.player.cq1_group_members self.participant.vars['cq1_payoff_sucker'] = self.player.cq1_payoff_sucker self.participant.vars['cq1_payoff_bothcoop'] = self.player.cq1_payoff_bothcoop self.participant.vars['cq1_aggr_bothcoop'] = self.player.cq1_aggr_bothcoop self.participant.vars['cq1_aggr_bothdef'] = self.player.cq1_aggr_bothdef self.participant.vars['cq1_highest_payoff'] = self.player.cq1_highest_payoff self.participant.vars['cq1_payments'] = self.player.cq1_payments page_sequence = [ Intro1, Intro2, IntroInstructions, IntroInstructionsTask1, IntroInstructionsCq1, IntroInstructionsTask1Recap ]