from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Instructions(Page): def is_displayed(self): return self.round_number == 1 class Auction(Page): form_model = "player" form_fields = ["wtp"] def vars_for_template(self): treatment_group_1 = self.participant.vars['treatment_group_1'] treatment_group_2 = self.participant.vars['treatment_group_2'] return dict( treatment_group_1=treatment_group_1, treatment_group_2=treatment_group_2 ) class Results(Page): pass page_sequence = [Instructions, Auction, Results]