#from .models import * from otree.api import Currency as c, currency_range from . import models from ._builtin import Page, WaitPage from .models import Constants #class Mindfulness_Check(Page): class M_Check(Page): form_model = 'player' form_fields = ['q1', 'q2', 'q3', 'q4', 'q5', 'q6', 'q7', 'q8', 'q9', 'q10', 'q11', 'q12', 'q13', 'q14', 'q15'] def is_displayed(self): # return self.round_number == self.participant.vars['task_rounds']['Mindfulness_Check'] return self.round_number == self.participant.vars['task_rounds']['M_Check'] #class Compassion_Check(Page): class C_Check(Page): form_model = 'player' form_fields = ['c1', 'c2', 'c3', 'c4', 'c5', 'c6', 'c7', 'c8', 'c9', 'c10', 'c11', 'c12', 'c13', 'c14', 'c15', 'c16'] def is_displayed(self): # return self.round_number == self.participant.vars['task_rounds']['Compassion_Check'] return self.round_number == self.participant.vars['task_rounds']['C_Check'] #page_sequence = [Mindfulness_Check, Compassion_Check] page_sequence = [M_Check, C_Check]