from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Hello(Page): form_model = 'player' def vars_for_template(self): self.player.Prolific_ID = self.player.participant.label class ProlificID(Page): form_model = 'player' form_fields = ['Prolific_ID'] class Welcome(Page): form_model = 'player' form_fields = ['control_question'] def vars_for_template(self): self.player.Prolific_ID = self.player.participant.label class General_Instructions(Page): form_model = 'player' class Description(Page): form_model = 'player' class Examples(Page): form_model = 'player' class Questions(Page): form_model = 'player' form_fields = ['question1', 'question2'] class Contribution_decision(Page): form_model = 'player' form_fields = ['contribution'] class Others_Contribution_decision(Page): form_model = 'player' form_fields = ['contribution_estimate'] class ResultsWaitPage(WaitPage): after_all_players_arrive = 'set_payoffs' body_text = "Please wait while the other participant in your group makes their decisions." class Earnings(Page): form_model = 'player' #form_fields = ['contribution', # 'other_contribution', # 'my_payoff', #'other_payoff', # 'bonus_earnings', # 'fixed_earnings', # 'final_earnings'] class Questionnaire_after(Page): form_model = 'player' form_fields = ['onescale_after', 'wescale_after',] class Final_Questionnaire(Page): form_model = 'player' form_fields = ['gender', 'other_gender_belief', 'age', 'language', 'max_income', 'trust', 'risk', 'instructions', 'fair_contribute', 'other_fair_contribute', 'econ_exp', 'feedback'] class Thanks(Page): form_model = 'player' page_sequence = [Welcome, ProlificID, General_Instructions, Description, Examples, Questions, Contribution_decision, Others_Contribution_decision, ResultsWaitPage, Earnings, Questionnaire_after, Final_Questionnaire, Thanks]