from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Owner_quest(Page): form_model = 'player' form_fields = ['name','email','educ','major','gender','happy','expectation','ways','adversary'] def is_displayed(self): return self.player.id_in_group == 1 class Renter_quest(Page): form_model = 'player' form_fields =['name','email','educ','major','gender','happy','expectation','ways','adversary'] def is_displayed(self): return self.player.id_in_group == 2 class TransitionPage(Page): form_model = 'player' class TransitionPage1(Page): form_model = 'player' form_fields = ['DebInt'] def vars_for_template(self): return dict(total_points1=self.participant.payoff_plus_participation_fee(), total_points2=self.participant.payoff_plus_participation_fee()) page_sequence = [TransitionPage,Owner_quest,Renter_quest]