from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = '' class Constants(BaseConstants): name_in_url = 'RCT_Treatment' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): gender = models.IntegerField(choices=[[1, 'Female'], [2, 'Male'], [3, 'Other']], label='What is your gender? Please tick one:', widget=widgets.RadioSelect) age = models.IntegerField(label='What is your age? Please type in', max=120, min=1) educ = models.IntegerField(choices=[[1, 'no degree'], [2, 'primary school'], [3, 'secondary school'], [4, 'high school'], [5, 'Bachelor'], [6, 'Master'], [7, 'PhD']], label='Which is your highest educational achievment? Please tick one:', widget=widgets.RadioSelect) income = models.IntegerField(choices=[[1, 'under 900 Euros'], [2, 'between 900 - 1500 Euros'], [3, 'between 1500 - 2500 Euros'], [4, 'between 2500 - 3500 Euros'], [5, 'between 3500 - 5000 Euros'], [6, 'above 5000 Euros']], label='How much do you earn per month (before taxes)? Please tick one:', widget=widgets.RadioSelect) sector = models.IntegerField(choices=[[1, 'Raw materials'], [2, 'Farming/Fishing'], [3, 'Manufacturing'], [4, 'Utilities - electricity, gas'], [5, 'Construction'], [6, 'Retail'], [7, 'Financial services'], [8, 'Communication'], [9, 'Hospitality and leisure'], [10, 'Real estate'], [11, ' Information technology'], [12, 'Education'], [13, 'Public sector'], [14, 'Research and development'], [15, 'Other']], label='In which sector of the economy do you work? Please tick one:', widget=widgets.RadioSelect) nationality = models.IntegerField(choices=[[1, 'German'], [2, 'British'], [3, 'French'], [4, 'Russian '], [5, 'Spanish'], [6, 'USA'], [7, 'Canadian'], [8, 'Chinese'], [9, 'Australian'], [10, 'Eastern European Countries'], [11, 'Scandinavia'], [12, 'Latin-America'], [13, 'Oceania'], [14, 'Asia'], [15, 'Middle East'], [16, 'Africa'], [17, 'Other']], label='What is your Nationality? Please choose one:') afford = models.IntegerField(choices=[[1, 'yes, of course'], [2, 'yes, probably'], [3, 'maybe'], [4, 'no, probably not'], [5, 'no, not at all']], label='Do you think that we can afford green policies in times of corona? Please tick one:', widget=widgets.RadioSelect) investment = models.IntegerField(choices=[[1, 'yes'], [2, 'no'], [3, "I don't know"]], label='Do you think investment in green policies is necessary for society. Please tick one:', widget=widgets.RadioSelect) pay = models.IntegerField(choices=[[1, 'yes'], [2, 'no'], [3, "I don't know"]], label='Would you be willing to pay for the investment? Please tick one:', widget=widgets.RadioSelect) car = models.IntegerField(choices=[[1, 'never'], [2, 'seldom'], [3, 'regularly'], [4, 'very often']], label='How often do you drive your car? Please tick one:', widget=widgets.RadioSelect) price_gas = models.FloatField(blank=True, initial=0, label='What is the highest price you are willing to pay for a litre of gasoline to support green policy?', max=10, min=0) employer = models.IntegerField(choices=[[1, 'strong negative financial impact'], [2, 'weak negative financial impact'], [3, 'weak positive financial impact'], [4, 'strong positive financial impact'], [5, 'no impact'], [6, 'don’t know']], label='Was your working sector / employer hit by Corona? Please tick one:', widget=widgets.RadioSelect) choice1 = models.IntegerField(choices=[[1, '€ 50'], [2, '€ 40']], label='', widget=widgets.RadioSelectHorizontal) choice2 = models.IntegerField(choices=[[1, '€ 50 '], [2, '€ 50']], label='', widget=widgets.RadioSelectHorizontal) choice3 = models.IntegerField(choices=[[1, '€ 50'], [2, '€ 60']], label='', widget=widgets.RadioSelectHorizontal) choice4 = models.IntegerField(choices=[[1, '€ 50'], [2, '€ 70']], label='', widget=widgets.RadioSelectHorizontal) choice5 = models.IntegerField(choices=[[1, '€ 50'], [2, '€ 80']], label='', widget=widgets.RadioSelectHorizontal) choice6 = models.IntegerField(choices=[[1, '€ 50'], [2, '€ 90']], label='', widget=widgets.RadioSelectHorizontal) choice7 = models.IntegerField(choices=[[1, '€ 50'], [2, '€ 100']], label='', widget=widgets.RadioSelectHorizontal)