from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import C class Equal_treatment(Page): form_model = 'player' form_fields = ['equal_treatment_arab', 'equal_treatment_immigrant', 'equal_treatment_women', 'equal_treatment_lgbt','equal_treatment_relig'] def app_after_this_page(self, upcoming_apps): if self.player.specific_decision=='CG': return upcoming_apps[0] class DecisionsOnACase(Page): form_model = 'player' form_fields = ['specific_decision_quality'] def vars_for_template(self): player = self.player base_rights= 'Not everyone always agrees with the Court, but some people argue that one of the most important things the court does is protect the rights of Israelis. ' \ 'For instance, The Israeli Supreme Court ruled that the state cannot discriminate against ' decision_dict = { 'equal_jew':'Not everyone always agrees with the court, but some argue one of its most important roles is ' 'protecting Israeli citizens from discrimination. For instance in a 2010 petition filed by a ' 'secular Jew the court ruled that a section of the Budget Law that guaranteed minimal income ' 'allowances to Kollel students is a disproportionate violation of the principle of equality, since ' 'the budget only covers kollel students. The decision stated, "The fact that Kollel students are ' 'members of a unique community that defines Torah studies as an essential part of its identity, ' 'cannot justify violating the basic equality of all citizens of the state."', 'equal_arab':'Not everyone always agrees with the court, but some argue one of its most important roles is ' 'protecting Israeli citizens from discrimination. For instance in a 2010 petition filed by an Arab the court ruled that a section of ' 'the Budget Law that guaranteed minimal income allowances to Kollel students is a disproportionate violation of the principle of equality, since the budget ' 'only covers kollel students. The decision stated, “The fact that Kollel students are members of a unique community that defines Torah studies as an essential part' ' of its identity, cannot justify violating the basic equality of all citizens of the state."', 'speech_relig': 'Not everyone always agrees with the Court, but some people argue that one of the most important things the court does is protect the rights of Israelis. For instance, in a recent decision the court upheld the free speech rights of religious jews protesting the lax enforcement of dietary restrictions in public facilities, specifically of Kosher food in Pesach in public hospitals.', 'speech_secular': 'Not everyone always agrees with the Court, but some people argue that one of the most important things the court does is protect the rights of Israelis. For instance, in a recent decision the court upheld the free speech rights of secular jews protesting the enforcement of strict dietary restrictions in public facilities, specifically of Kosher food in Pesach in public hospitals. ', 'Reasonableness_rigth': 'Not everyone always agrees with the Court, but some people think that one of the most important things the court does is constrain the action of government officials. ' 'For instance, in a recent decision the court struck down an action of the Netanyahu government because ' 'the government failed to meet the standard of reasonableness.', 'Reasonableness_left': 'Not everyone always agrees with the Court, but some people think that one of the most important things the court does is constrain the action of government officials. ' 'For instance, in a recent decision the court struck down an action of the Lapid government because ' 'the government failed to meet the standard of reasonableness.', 'CG':'CG' } vft = dict( decision_text=decision_dict[player.specific_decision], control_decision = player.specific_decision=='CG') vft.update(decision_dict) return vft class CourtDecision(Page): form_model = 'player' form_fields = ['court_decision'] def vars_for_template(self): self.player.session.config['CourtDecision_shown']=True decision_dict = self.player.session.config class Influence(Page): form_model = 'player' form_fields = ['influence_society', 'influence_like_you'] class Thanks(Page): form_model = 'player' page_sequence = [Equal_treatment,CourtDecision,DecisionsOnACase,Influence]