from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Consent(Page): def vars_for_template(self): return {'participation_fee': Constants.participation_fee, 'max_bonus': self.session.config['max_bonus'] } class Demographics(Page): form_model = 'player' form_fields = ['gender', 'year_of_birth', 'income', 'hhincome', 'marital_status', 'children', 'race', 'education', 'occupation', 'other_occupation'] class Earnings(Page): def vars_for_template(self): max_bonus = Constants.max_bonus return {'max_bonus': max_bonus} page_sequence = [ Consent, Demographics, Earnings ]