from otree.api import Currency as c, currency_range from . import models from ._builtin import Page, WaitPage from .models import Constants # class InputSubjectID(Page): # form_model = models.Player # form_fields = ['Subject_ID'] # def is_displayed(self): # return self.round_number == 1 class IndustriousnessScale(Page): form_model = models.Player form_fields = ['indust_1','indust_2','indust_3','indust_4','indust_5','indust_6','indust_7','indust_8','indust_9'] def get_form_field(self): fields = self.form_fields random.shuffle(fields) return fields # class RAS(Page): # form_model = models.Player # form_fields = ['RAS_01','RAS_02','RAS_03','RAS_04','RAS_05','RAS_06','RAS_07','RAS_08','RAS_09','RAS_10'] # def get_form_field(self): # fields = self.form_fields # random.shuffle(fields) # return fields # class BSCS(Page): # form_model = models.Player # form_fields = ['BSCS_01','BSCS_02','BSCS_03','BSCS_04','BSCS_05','BSCS_06','BSCS_07','BSCS_08','BSCS_09','BSCS_10','BSCS_11','BSCS_12','BSCS_13'] # def get_form_field(self): # fields = self.form_fields # random.shuffle(fields) # return fields # class TME(Page): # form_model = models.Player # form_fields = ['TME_01','TME_02','TME_03','TME_04','TME_05','TME_06','TME_07','TME_08','TME_09', # 'TME_10','TME_11','TME_12','TME_13','TME_14','TME_15','TME_16','TME_17','TME_18','TME_19', # 'TME_20','TME_21','TME_22','TME_23','TME_24','TME_25','TME_26','TME_27','TME_28','TME_29','TME_30'] # def get_form_field(self): # fields = self.form_fields # random.shuffle(fields) # return fields class TTQ(Page): form_model = models.Player form_fields = ['TTQ_01','TTQ_02','TTQ_03','TTQ_04','TTQ_05','TTQ_06','TTQ_07','TTQ_08','TTQ_09', 'TTQ_10','TTQ_11','TTQ_12','TTQ_13','TTQ_14','TTQ_15','TTQ_16','TTQ_17','TTQ_18','TTQ_19', 'TTQ_20','TTQ_21','TTQ_22','TTQ_23','TTQ_24'] def get_form_field(self): fields = self.form_fields random.shuffle(fields) return fields # class NCS(Page): # form_model = models.Player # form_fields = ['NCS_01','NCS_02','NCS_03','NCS_04','NCS_05','NCS_06','NCS_07','NCS_08','NCS_09', # 'NCS_10','NCS_11','NCS_12','NCS_13','NCS_14','NCS_15','NCS_16','NCS_17','NCS_18'] # def get_form_field(self): # fields = self.form_fields # random.shuffle(fields) # return fields # class PTIEQ(Page): # form_model = models.Player # form_fields = ['PTIEQ_01','PTIEQ_02','PTIEQ_03','PTIEQ_04','PTIEQ_05','PTIEQ_06','PTIEQ_07','PTIEQ_08','PTIEQ_09', # 'PTIEQ_10','PTIEQ_11','PTIEQ_12','PTIEQ_13','PTIEQ_14','PTIEQ_15','PTIEQ_16'] # def get_form_field(self): # fields = self.form_fields # random.shuffle(fields) # return fields class Completion(Page): def is_displayed(self): completion_code = '3136532' return completion_code ### make sure these are all completely randomized page_sequence = [ IndustriousnessScale, # RAS, # BSCS, # TME, TTQ, # NCS, # PTIEQ, Completion ]