from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) author = 'Salim Nuhu' doc = """ This is the CoP Experiment """ import random class Constants(BaseConstants): name_in_url = 'practice' players_per_group = None num_rounds = 5 endowment = c(100) multiplication_factor = 3 shocks = [0, 3] random_return= random.choice(shocks) #instructions_template = 'COP_Experiment/instructions.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): pass name = models.StringField( label=''' First name''', ) company = models.StringField( label=''' Name of the firm you represent''', ) position = models.StringField( label=''' Your role in the company''', ) age = models.IntegerField( label='Age', min=18, max=125) gender = models.StringField( choices=['Male', 'Female'], label='Gender', widget=widgets.RadioSelect ) educ = models.StringField( choices=['Not Gone to School', 'Primary', 'Secondary', 'Diploma(Including Nursing, Vocational and Teaching Diploma)', 'University Degree', 'Postgraduate Degree', 'Doctorate'], label=''' What is the highest level of education you have completed? ''', widget=widgets.RadioSelect ) county = models.StringField( label=''' In which county is your company/organization located ''' ) product = models.StringField( label=''' What is your organization's main product (focus area if NGO)? ''' )