from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants class Results(Page): def vars_for_template(self): self.group.gain() participant = self.participant return{ 'cumulative_payoff': participant.vars['cumulative_payoff'], 'Gain_elicitation': participant.vars['Gain_elicitation'], } form_model = 'player' form_fields = [ 'commentaire',] class PaymentInfo(Page): def vars_for_template(self): participant = self.participant return dict(redemption_code=participant.label or participant.code) page_sequence = [Results, PaymentInfo]