from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class demo(Page): form_model = 'player' form_fields = ['dob', 'gender', 'caste', 'religion', 'marital_status', 'pa_education', 'ma_education','class10', 'class12', 'educ', 'educ_other', 'entry_exam', 'entry_other', 'entry_score', 'previous_work_ex', 'num_work_ex', 'industry_work_ex', 'industry_work_ex_other', 'prev_inc', ] class cog(Page): form_model = 'player' form_fields = ['b1', 'b2', 'b3'] class risk(Page): form_model = 'player' form_fields = ['c1', 'c2', 'c3', 'c4'] class time(Page): form_model = 'player' form_fields = ['d1', 'd2', 'dchoice1', 'dchoice2', 'dchoice3', 'dchoice4', 'dchoice5', 'dchoice6', 'dchoice7', 'dchoice8', 'dchoice9', 'dchoice10'] class pref(Page): form_model = 'player' form_fields = ['e1', 'e2', 'e3'] #class happy(Page): #form_model = 'player' #form_fields = ['f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7'] class optim(Page): form_model = 'player' form_fields = ['g1', 'g2', 'g3', 'g4', 'g5', 'g6', 'g7', 'g8', 'g9', 'g10'] #class social(Page): #form_model = 'player' #form_fields = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'h7', 'h8', 'h9', 'h10', 'h11','h12', 'h13', 'h14', 'h15', 'h16', 'h17', 'h18', 'h19', 'h20', 'h21', 'h22','h23', 'h24', 'h25', 'h26', 'h27', 'h28', 'h29', 'h30', 'h31', 'h32', 'h33'] class aspire(Page): form_model = 'player' form_fields = ['i1', 'i2', 'i3', 'i4', 'i5', 'i6', 'i7'] #class trust(Page): #form_model = 'player' #form_fields = ['j1'] class paymt(Page): form_model = 'player' form_fields = ['k1','k2'] def vars_for_template(self): return { 'final_payoff' : self.participant.vars['final_payoff'] } page_sequence = [ demo, cog, risk, time, pref, optim, aspire, paymt ]