from ._builtin import Page, WaitPage from .models import Constants class general_study_Instructions(Page): form_model = 'player' form_fields = ['P_ID'] class Introduction(Page): pass class situation_description_points(Page): form_model = 'player' form_fields = ['expectation'] class Results(Page): form_model = 'player' form_fields = ['feedback'] def vars_for_template(self): return { 'given': self.player.points_allocated_by_giver, 'given_real_world_currency': self.player.points_allocated_by_giver.to_real_world_currency(self.session), 'endowment': 0.09, } class completion_site(Page): pass page_sequence = [ general_study_Instructions, Results, completion_site ]