from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants class Get_multiplier_previous_round (WaitPage): """Get Endowment and Multiplier from previous application""" after_all_players_arrive = 'get_multiplier_previous_round' body_text = "Waiting for other the other participants. Please be patient." class Attention_Check_3_Page(Page): form_model = 'player' form_fields = ['Attention_Check_3'] class DemographicsQuestions(Page): form_model = 'player' form_fields = ['gender', 'age', 'country', 'education', 'SES', 'income', 'persons_household'] class BankInfo(Page): form_model = 'player' form_fields = ['Credits','Bank', 'Bank_account_name', 'Street_and_House_number', 'Postal_code', 'City', 'CountryBank', 'IBAN', 'emailadress'] class MyWaitPage(WaitPage): """Wait for other participants""" after_all_players_arrive = 'my_method' def app_after_this_page(self, upcoming_apps): if self.round_number == 1: return "payment_info" body_text = "The experiment is almost finished. Waiting for other the other participants. Please be patient." page_sequence = [Get_multiplier_previous_round, Attention_Check_3_Page, DemographicsQuestions, MyWaitPage]