from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) doc = '' class Constants(BaseConstants): name_in_url = 'Cover_crops_survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Age = models.FloatField(blank=True, label='How old are you?') Years_farming = models.FloatField( blank=True, label='How many years have you been farming?', max=100, min=1 ) Farm_size = models.IntegerField( blank=True, label='How big is your total farm operation, in acres?', min=0 ) Plant_cover_crops = models.BooleanField( blank=True, choices=[[True, 'Yes'], [False, 'No']], label='Did you plant cover crops on your farm after your latest harvest?', ) Cover_crop_acres = models.IntegerField( blank=True, label='How many acres did you plant cover crops on your farm, after your last harvest?', min=0, ) email_address = models.StringField( label='Please enter your email address. This is where we will send your Tango gift card.' ) Cover_crop_years = models.FloatField( blank=True, label='How many years have you planted cover crops on your farm?' ) Education = models.StringField( blank=True, choices=[ ['Some high school', 'Some high school'], ['High school diploma', 'High school diploma'], ['Some college, no degree', 'Some college, no degree'], ['College degree', 'College degree'], ['Graduate or professional degree', 'Graduate or professional degree'], ], label='What is the highest level of education you have completed?', widget=widgets.RadioSelectHorizontal, ) Name = models.StringField(blank=True, label='Please enter your first and last name.')