from otree.api import * c = cu 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): Language = models.StringField(choices=[['English', 'English'], ['German', 'German']], label='Before starting the experiment select the language in which you would prefer to complete:') Consent = models.StringField(choices=[['I agree that my personal data will be processed in accordance with the information listed here.', 'I agree that my personal data will be processed in accordance with the information listed here.'], ["I don't agree that my personal data will be processed in accordance with the information listed here.", "I don't agree that my personal data will be processed in accordance with the information listed here."]]) General = models.StringField(choices=[['Male ', 'Male '], ['Women ', 'Women '], ['Divers ', 'Divers ']], label='Your Gender:') Education = models.StringField(choices=[['High school diploma (or equivalent)', 'High school diploma (or equivalent)'], ['Bachelor', 'Bachelor'], ['Master', 'Master'], ['State examination', 'State examination'], ['PhD', 'PhD'], ['Graduated', 'Graduated'], ['Other (please specify)', 'Other (please specify)']], label='Your Highest Education:') Age = models.IntegerField(blank=True, label='Your Age:', max=67, min=18) Program = models.StringField(blank=True, label='Your Study Program') Instruction = models.StringField(label='Welcome to the Experiment “Finding Applications for Biofuctional Building Blocks” ') Application = models.LongStringField(blank=True, label='') Problem = models.LongStringField(blank=True, label='') Idea = models.LongStringField(blank=True, label='') BBB = models.StringField(choices=[['Almost all chemical, physical, and biological functions can be transmitted by the functional components of biofunctional building blocks.', 'Almost all chemical, physical, and biological functions can be transmitted by the functional components of biofunctional building blocks.'], ['Biofunctional building blocks can only bind to organic materials, not to inorganic materials.', 'Biofunctional building blocks can only bind to organic materials, not to inorganic materials.'], ['Biofunctional building blocks consist of only one component that both binds and carries the function. ', 'Biofunctional building blocks consist of only one component that both binds and carries the function. '], ['Biofunctional building blocks cannot create new properties in materials, they can only enhance existing ones.', 'Biofunctional building blocks cannot create new properties in materials, they can only enhance existing ones.']]) class Survey(Page): form_model = 'player' form_fields = ['Language'] class Consent(Page): form_model = 'player' form_fields = ['Consent'] class General(Page): form_model = 'player' form_fields = ['General', 'Education', 'Age', 'Program'] class Instruction(Page): form_model = 'player' class Idea(Page): form_model = 'player' form_fields = ['Idea'] class Innovative(Page): form_model = 'player' form_fields = ['Problem'] class Coreproblem(Page): form_model = 'player' form_fields = ['Problem'] timeout_seconds = 180 class Applications(Page): form_model = 'player' form_fields = ['Application', 'Problem'] page_sequence = [Survey, Consent, General, Instruction, Idea, Innovative, Coreproblem, Applications]