from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'syllabus_pretesting' players_per_group = None num_rounds = 1 ## "syllabus" says which syllabus is being used: 1 is original, 2 is stylized syllabus = 1 #syllabus = 2 syllabus_template_original = 'syllabus_pretesting/syllabus_original.html' syllabus_template_stylized = 'syllabus_pretesting/syllabus_stylized.html' instructions_template = 'syllabus_pretesting/instructions.html' info_sheet_template = 'syllabus_pretesting/info_sheet.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): ### CAPTCHA ### captcha = models.CharField(blank=True) ### CLARITY OF CONTENT ### clarity = models.IntegerField( label='Please indicate how much you agree with the following statement: This portion of the syllabus clearly ' 'communicates what students can expect to learn in the course.', widget=widgets.RadioSelect, choices=[ [1, '1 - Strongly disagree'], [2, '2 - Disagree'], [3, '3 - Neutral'], [4, '4 - Agree'], [5, '5 - Strongly agree'] ] ) clarity_why_not_lower = models.StringField( label='',) clarity_why_not_higher = models.StringField( label='',) clarity_answer = models.StringField() ### WHICH TREATMENT ### syllabus_type = models.IntegerField(initial=Constants.syllabus)