from . import models from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants class Introduction(Page): pass class Multiple_Choice(Page): form_model = models.Player form_fields = ['q_max_payoff', 'q_max_payoffsum', 'q_avoid_disaster', 'q_estimate_others'] class Short_Answers(Page): form_model = models.Player form_fields = ['q_decision_process', 'q_decision_change', 'q_best_strategy'] class three_R(Page): form_model = models.Player form_fields = ['q_3R_first', 'q_3R_second', 'q_3R_third'] def before_next_page(self): self.player.calc_answers() class Understanding_comments(Page): form_model = models.Player form_fields = ['q_understanding', 'q_comment'] class Final_Q(Page): pass page_sequence = [ Introduction, Multiple_Choice,Short_Answers,three_R,Understanding_comments,Final_Q ]