from typing import List from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Introduction(Page): #timeout_seconds = 60 pass class Questionaire(Page): form_model = 'player' form_fields = ['age', 'gender', 'nationality', 'ethnicity', 'language', 'residency', 'education', ] class ValueSurvey(Page): form_model = 'player' form_fields = ['SDT1', 'SDT2', 'SDT3', 'SDA1', 'SDA2', 'SDA3', 'ST1', 'ST2', 'ST3', 'HE1', 'HE2', 'HE3', 'AC1', 'AC2', 'AC3', 'POR1', 'POR2', 'POR3', 'POD1', 'POD2', 'POD3', 'FAC1', 'FAC2', 'FAC3', 'SEP1', 'SEP2', 'SEP3', 'SES1', 'SES2', 'SES3', 'TR1', 'TR2', 'TR3', 'COR1', 'COR2', 'COR3', 'COI1', 'COI2', 'COI3', 'HU1', 'HU2', 'HU3', 'BED1', 'BED2', 'BED3', 'BEC1', 'BEC2', 'BEC3', 'UNC1', 'UNC2', 'UNC3', 'UNN1', 'UNN2', 'UNN3', 'UNT1', 'UNT2', 'UNT3', ] class Results(Page): def is_displayed(self): self.player.set_SDT() self.player.set_SDA() self.player.set_ST() self.player.set_HE() self.player.set_AC() self.player.set_POR() self.player.set_POD() self.player.set_FAC() self.player.set_SEP() self.player.set_SES() self.player.set_TR() self.player.set_COR() self.player.set_COI() self.player.set_HU() self.player.set_BED() self.player.set_BEC() self.player.set_UNC() self.player.set_UNN() self.player.set_UNT() #If you ant to show these measures return them below. Ohersise leave it out # return { # 'SDT': self.player.set_SDT() # } # class End(Page): # def is_displayed(self): # return (self.round_number == Constants.num_rounds) page_sequence = [ Introduction, Questionaire, ValueSurvey, # Results, #End, ]