from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class Proposed_extraction(Page): form_model = 'player' form_fields = ['extraction'] class ExtractWaitPage(WaitPage): after_all_players_arrive = 'set_extractions' class Vote(Page): form_model = 'player' form_fields = ['vote'] a= list def vars_for_template(self): contrib_of_others = [p.extraction for p in self.player.get_others_in_group()] return dict(extractions_others=contrib_of_others) class ResultsWaitPage(WaitPage): after_all_players_arrive = 'set_payoffs' class Results(Page): pass page_sequence = [Proposed_extraction, ExtractWaitPage, Vote, ResultsWaitPage, Results]