from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class ResultsSummary(Page): def vars_for_template(self): return { 'payoff_game1': self.participant.vars['payoff_game1'], 'payoff_game2': self.participant.vars['payoff_game2'], 'show_up_fee': Constants.show_up_fee, 'total_payoff': self.participant.payoff_plus_participation_fee } class Issues(Page): form_model = 'player' form_fields = ['issues', 'comments'] page_sequence = [ ResultsSummary, Issues ]