from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants class Introduction(Page): def is_displayed(self): return self.round_number == 1 class Decide(Page): timeout_seconds = 30 form_model = 'player' form_fields = ['units'] class ResultsWaitPage(WaitPage): body_text = "他の参加者の選択を待っています。" after_all_players_arrive = 'set_payoffs' class Results(Page): def vars_for_template(self): return dict(other_player_units=self.player.other_player().units) page_sequence = [Introduction, Decide, ResultsWaitPage, Results]