from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants class Introduction(Page): pass class Action(Page): form_model = 'group' form_fields= ['Action'] def is_displayed(self): return self.player.id_in_group == 1 class ActionWaitPage(WaitPage): after_all_players_arrive = 'ActionValue' #pass class Reaction(Page): form_model = 'group' form_fields= ['Reaction'] def is_displayed(self): return self.player.id_in_group == 2 class ReactionWaitPage(WaitPage): pass class Introductionp2(Page): pass class Introductionp2WaitPage(WaitPage): pass class Fairness(Page): form_model = 'player' form_fields= ['Fairness1','Fairness2','Fairness3','Fairness4'] class ResultsWaitPage(WaitPage): #after_all_players_arrive = 'set_payoffs' pass class Results(Page): """Diese Seite zeigt die Auszahlung aus den beiden Teilen.""" def vars_for_template(self): return dict()#need to fix page_sequence = [Introduction, Action, ActionWaitPage, Reaction, ReactionWaitPage, Introductionp2, Introductionp2WaitPage, Fairness, ResultsWaitPage, Results,]