from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Instructions(Page): def vars_for_template(self): return {'n_applications': Constants.n_applications, 'max_bonus': Constants.max_bonus} class Rating1(Page): form_model = 'player' form_fields = ['r1A','r1B'] def vars_for_template(self): return {'application': self.player.application1} class Rating2(Page): form_model = 'player' form_fields = ['r2A', 'r2B'] def vars_for_template(self): return {'application': self.player.application2} class Rating3(Page): form_model = 'player' form_fields = ['r3A', 'r3B'] def vars_for_template(self): return {'application': self.player.application3} class Rating4(Page): form_model = 'player' form_fields = ['r4A', 'r4B'] def vars_for_template(self): return {'application': self.player.application4} class Rating5(Page): form_model = 'player' form_fields = ['r5A', 'r5B'] def vars_for_template(self): return {'application': self.player.application5} page_sequence = [ Instructions, Rating1, Rating2, Rating3, Rating4, Rating5 ]