from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Demographics(Page): form_model = 'player' form_fields = ['age', 'gender'] class CognitiveReflectionTest(Page): form_model = 'player' form_fields = ['crt_bat', 'crt_widget', 'crt_lake'] class choice_problem(Page): form_model = 'player' form_fields = ['choice_options'] def vars_for_template(self): return dict( image_path='my_app/{}.png'.format(self.round_number) ) class o10a20(Page): form_model = 'player' form_fields = ['options_o10a20'] class o10a30(Page): form_model = 'player' form_fields = ['options_o10a30'] class o20a20(Page): form_model = 'player' form_fields = ['options_o20a20'] class o20a30(Page): form_model = 'player' form_fields = ['options_o20a30'] page_sequence = [ choice_problem ]