from ._builtin import Page, WaitPage # from otree.api import Currency as c, currency_range from .models import Constants from django.template.defaulttags import register import random @register.filter def get_choices(choice_history, round_num): return choice_history[round_num-1] class FinalSurvey(Page): def is_displayed(self): return self.round_number == Constants.num_rounds def vars_for_template(self): return { 'num_rounds': Constants.num_rounds } form_model = 'player' form_fields = ['age', 'gender', 'continent', 'studied', 'personality1', 'personality2', 'personality3', 'personality4', 'personality5', 'comments'] class Thanks(Page): def is_displayed(self): return self.round_number == Constants.num_rounds page_sequence = [ # Name, # Introduction, # Decision, # # ResultsWaitPage, # Results, # RoundSurvey, FinalSurvey, Thanks ]