from . import models from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants import random class aInstructions(Page): pass class aContribute(Page): """Player: Choose how much to contribute""" form_model = models.Player form_fields = ['contribution'] class bPleaseproceed(Page): timeout_seconds = 11 class cResults(Page): def vars_for_template(self): return self.group.set_payoffs() class SimpleWaitPage(WaitPage): def vars_for_template(self): self.group.set_payoffs() body_text = "Waiting for other group members." pass page_sequence = [ aInstructions, aContribute, bPleaseproceed, SimpleWaitPage, cResults, ]