from otree.api import * BLANK = True def feedback_survey_overall(constraints=False): q1 = models.IntegerField(label="How satisfied are you with your contributions?", choices=[ [1, 'Very Satisfied'], [2, 'Satisfied'], [3, 'Neutral'], [4, 'Could do better'], [5, 'Not at all'] ], widget=widgets.RadioSelectHorizontal, blank=BLANK) q2 = models.IntegerField(label="How satisfied are you with your partner's contributions?", choices=[ [1, 'Very Satisfied'], [2, 'Satisfied'], [3, 'Neutral'], [4, 'Could do better'], [5, 'Not at all'] ], widget=widgets.RadioSelectHorizontal, blank=BLANK) q3 = models.IntegerField(label="How much do you like the story that you generated?", choices=[ [1, 'Very much'], [2, 'Satisfied'], [3, 'Neutral'], [4, 'Could do better'], [5, 'Not at all'] ], widget=widgets.RadioSelectHorizontal, blank=BLANK) q4 = models.IntegerField(label="How do you rate the level of coordination between you and your partner?", choices=[ [1, 'High'], [2, 'Reasonable '], [3, 'Neutral'], [4, 'Low'], [5, 'Poor'] ], widget=widgets.RadioSelectHorizontal, blank=BLANK) if constraints: q5 = models.IntegerField(label="Do you think you satisfied all the constraints of the story?", choices=[ [1, 'All'], [2, 'Most'], [3, 'Some'], [4, 'Few'], [5, 'Not at all'] ], widget=widgets.RadioSelectHorizontal, blank=BLANK) return [q1, q2, q3, q4, q5,] else: return [q1, q2, q3, q4]