from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class MyPage(Page): pass class ResultsWaitPage(WaitPage): def after_all_players_arrive(self): self.group.calc_profit() body_text = "Waiting for other participants to submit their choices." class Results(Page): form_model = 'player' form_fields = ['qty_1', 'qty_2', 'qty_3', 'payoff'] class intro(Page): pass class posters(Page): form_model = 'player' form_fields = ['poster'] class quantities(Page): form_model = 'player' form_fields = ['qty_1', 'qty_2', 'qty_3'] page_sequence = [ intro, posters, quantities, ResultsWaitPage, Results ]