from otree.api import * import random import itertools import time from random import choice doc = """ """ class C(BaseConstants): NAME_IN_URL = 'survey' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): position = models.StringField( choices=[ ['1', 'Masters student'], ['2', 'Pre-doc'], ['3', 'PhD student'], ['4', 'Post-doc'], ['5', 'Faculty'] ], label="1. Are you currently a...", widget=widgets.RadioSelect ) year = models.IntegerField( label="2. If you are a PhD student, which year are you in?", blank=True ) why = models.LongStringField( label="3. Why did you attend this event?", ) expectation = models.StringField( choices=[ ['1', 'Met'], ['2', 'Unmet'], ['3', 'Exceeded'] ], label="4. Were your expectations met, unmet or exceeded?", widget=widgets.RadioSelect ) rate = models.StringField( choices=[['1', ''], ['2', ''], ['3', ''], ['4', ''], ['5', ''], ['6', ''], ['7', ''], ['8', ''], ['9', ''], ['10', ''] ], label="", widget=widgets.RadioSelectHorizontal ) network = models.StringField( choices=[['1', ''], ['2', ''], ['3', ''], ['4', ''], ['5', ''], ['6', ''], ['7', ''], ['8', ''], ['9', ''], ['10', ''] ], label="", widget=widgets.RadioSelectHorizontal ) name1 = models.StringField( label="7. Please name 5 names of other student participants that you met during the summer school and you didn’t know before.", blank=True ) name2 = models.StringField( label="", blank=True ) name3 = models.StringField( label="", blank=True ) name4 = models.StringField( label="", blank=True ) name5 = models.StringField( label="", blank=True ) enjoy = models.LongStringField( label="8. What did you enjoy most about the school?", blank=True ) least = models.LongStringField( label="9. What did you like least about the school?", blank=True ) future = models.StringField( choices=[ ['1', 'Yes'], ['2', 'Maybe'], ['3', 'No'] ], label="10. Do you plan to attend this event in the future?", widget=widgets.RadioSelect ) poster = models.StringField( choices=[ ['1', 'Yes'], ['2', 'No'] ], label="11. Did you present a poster?", widget=widgets.RadioSelect ) feedback = models.StringField( choices=[['1', ''], ['2', ''], ['3', ''], ['4', ''], ['5', ''], ['6', ''], ['7', ''], ['8', ''], ['9', ''], ['10', ''] ], label="", widget=widgets.RadioSelectHorizontal, blank=True ) venue = models.StringField( choices=[['1', ''], ['2', ''], ['3', ''], ['4', ''], ['5', ''], ['6', ''], ['7', ''], ['8', ''], ['9', ''], ['10', ''] ], label="", widget=widgets.RadioSelectHorizontal ) hear = models.LongStringField( label="14. How did you hear about us?", ) satisfaction = models.StringField( choices=[['1', ''], ['2', ''], ['3', ''], ['4', ''], ['5', ''], ['6', ''], ['7', ''], ['8', ''], ['9', ''], ['10', ''] ], label="", widget=widgets.RadioSelectHorizontal ) further = models.LongStringField( label="16. Please provide any further feedback if you wish.", blank=True ) class Questionnaire(Page): form_model = 'player' form_fields = ['position', 'year', 'why', 'expectation', 'rate', 'network', 'name1', 'name2', 'name3', 'name4', 'name5', 'enjoy', 'least', 'future', 'poster', 'feedback', 'venue', 'hear', 'satisfaction', 'further' ] class Thanks(Page): pass page_sequence = [Questionnaire,Thanks]