from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, Page, WaitPage ) cu = c doc = '' class Constants(BaseConstants): name_in_url = 'survey' players_per_group = 3 num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField(label='What is your age?', max=125, min=13) gender = models.StringField(choices=[['Male', 'Male'], ['Female', 'Female']], label='What is your gender?', widget=widgets.RadioSelect) assigned_group = models.IntegerField() education = models.StringField(choices=[['high school ', 'High school diploma'], ['College/Polytechnic Diploma (2 years)', 'College/Polytechnic Diploma (2 years)'], ["Bachelor's degree or equivalent", "Bachelor's degree or equivalent"], ["Master's degree and above", "Master's degree and above"]], label='What is your level of education?', widget=widgets.RadioSelect) send_amount = models.CurrencyField(initial=0, label='Please enter an amount from 0 to 100', max=100, min=0) Nationality = models.StringField(blank=True, label='What is your nationality? ') Meditation_check = models.StringField(choices=[['No, I have not.', 'No, I have not.'], ['Yes, I had a little experience.', 'Yes, I had a little experience.'], ['Yes, I meditate regularly.', 'Yes, I meditate regularly.']], label='Have you meditated before?', widget=widgets.RadioSelect) Follow_video = models.StringField(choices=[['Yes, until the end.', 'Yes, until the end.'], ['Yes, but ceased in the middle. ', 'Yes, but ceased in the middle. '], ['No.', 'No.']], label='Did you follow the video?', widget=widgets.RadioSelect)