from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Vincent Lenglin' doc = """ Questionnaire démographique pour GIP """ class Constants(BaseConstants): name_in_url = 'EXLEY_DEMOG' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): AGE = models.IntegerField(label='', min=18, max=99, blank=False) SEXE = models.IntegerField(label= '', widget= widgets.RadioSelect, choices=[[1,'Female'], [2,'Male'], [3,'Rather not say']], blank=False) DISCIPLINE = models.IntegerField(label = '', widget=widgets.RadioSelect, choices= [[1,'Humanities and Social Sciences'] , [2,'Health'], [3, 'Art, Literature & Languages'], [4, 'Science & Technology'], [5, 'Other'], [6, 'Rather not say'], [7, 'Je ne suis pas étudiant']], blank=False) NIVEAU_ETUDE = models.IntegerField(label='', widget= widgets.RadioSelect, choices= [ [1, 'A levels '], [2, 'Bachelors degree'], [3, 'Masters degree'], [4, 'Doctorate (PhD)'], [5, 'Rather not say']], blank=False) DEBRIEF = models.LongStringField(blank=True, label="") QUEST_1 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_2 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_3 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_4 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_5 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_6 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_7 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_8 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_9 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_10 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_11 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_12 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_13 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_14 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']]) QUEST_15 = models.IntegerField(blank=False, label="", widget=widgets.RadioSelectHorizontal, choices=[ [1,'strongly disagree'], [2,'disagree'], [3, 'unsure'], [4,'agree'], [5,'strongly agree']])