from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) class Constants(BaseConstants): name_in_url = 'survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): name = models.StringField(label='Name') consent = models.StringField( choices=[['Yes','Yes']], label = 'I have understood what has been explained to me regarding the procedure and purpose of the research. I have understood my rights and offer my participation through a complete voluntary consent', widget=widgets.RadioSelect ) quiz1 = models.StringField( choices=[['Yes', 'Yes'], ['No','No']], label='Will you play with the same group members in every round?', widget=widgets.RadioSelect ) quiz2 = models.StringField( choices=[['More than others','More than others'], ['Equal to others', 'Equal to others',], ['Less than others', 'Less than others']], label='Suppose you invest more than others. How much do you earn? ', widget=widgets.RadioSelect ) quiz3 = models.StringField( choices=[['More than others','More than others'], ['Equal to others', 'Equal to others',], ['Less than others', 'Less than others']], label='Suppose you invest equal to others. How much do you earn? ', widget=widgets.RadioSelect ) quiz4 = models.StringField( choices=[['Randomly one round from 1 to 20 and Round 21', 'Randomly one round from 1 to 20 and Round 21'], ['All the rounds', 'All the rounds'], ['Randomly only one round', 'Randomly only one round']], label='How will you be paid', widget=widgets.RadioSelect )