from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Diya Ganguly ' doc = """ """ class Constants(BaseConstants): name_in_url = 'Text' players_per_group = 2 num_rounds = 1 class Subsession(BaseSubsession): pass def likert2(label): return models.IntegerField(choices=[[0, 'Relate Strongly'], [1, 'Relate Somewhat'], [2, 'Relate Very Little'], [3, 'Do Not Relate'],[4,'Not Relevant to Me']], label=label,widget=widgets.RadioSelect) class Group(BaseGroup): relateF=likert2(label="How much do you relate to this passage?") relateM = likert2(label="How much do you relate to this passage?") reflectF=models.LongStringField(label="Recall a situation when you behaved in line with the “feminine side” as presented in the text and describe the situation – your thoughts and feelings-in a short essay (5-10 sentences) in the box below.") reflectM=models.LongStringField(label="Recall a situation when you behaved in line with the “masculine side” as presented in the text and describe the situation – your thoughts and feelings – in a short essay (5-10 sentences) in the box below.") class Player(BasePlayer): AgPart=models.StringField(choices=[['Yes','Yes'],['No','No']],label='Do you agree to participate?') sign=models.StringField(label='Please sign your name here')