from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = '' class Constants(BaseConstants): name_in_url = 'csr_message_and_investment' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField(blank=True, label='What is your age', max=125, min=13) gender = models.StringField(blank=True, choices=[['Male', 'Male'], ['Female', 'Female'], ['Other', 'Other']], label='What is your gender', widget=widgets.RadioSelect) crt_widget = models.IntegerField(label='If it takes 5 machines 5 minutes to make 5 widgets how many minutes would it take 100 machines to make 100 widgets') crt_bat = models.IntegerField(label='A bat and a ball cost 22 dollars in total The bat costs 20 dollars more than the ball How many dollars does the ball cost') crt_lake = models.IntegerField(label='In a lake there is a patch of lily pads Every day the patch doubles in size If it takes 48 days for the patch to cover the entire lake how many days would it take for the patch to cover half of the lake') csr_question_1 = models.BooleanField(blank=True, choices=[[True, 'Yes'], [False, 'No']], label='The CSR framework encourages companies to address environmental and social issues beyond what is required by law.', widget=widgets.RadioSelect) csr_question_2 = models.BooleanField(blank=True, choices=[[True, 'Yes'], [False, 'No']], label="CSR does not contribute to a company's financial performance.", widget=widgets.RadioSelect) csr_question_3 = models.BooleanField(blank=True, choices=[[True, 'Yes'], [False, 'No']], label='Investors rarely consider CSR information when evaluating companies.', widget=widgets.RadioSelect) csr_question_4 = models.BooleanField(blank=True, label='Similar to financial disclosure, disclosure rules set by law are applied to corporate CSR disclosure.', widget=widgets.RadioSelect) csr_question_5 = models.BooleanField(blank=True, choices=[[True, 'Yes'], [False, 'No']], label='It has been pointed out that companies that are reluctant to CSR activities tend to actively disclose CSR information in order to improve their appearance.', widget=widgets.RadioSelect) message_analysis = models.LongStringField(blank=True, label="Analyze and describe the characteristics of Company A's CSR activities based on the above top management message, financial performance, and CSR performance.") inv_short = models.IntegerField(blank=True, label='Stock price after 3 days ', min=0) inv_long = models.IntegerField(blank=True, label='Stock price after two years') f_q1 = models.StringField(blank=True, choices=[['1 Disagree', '1 Disagree'], ['2', '2'], ['3', '3'], ['4 Neither Agree', '4 Neither Agree'], ['5', '5'], ['6', '6'], ['7 Agree', '7 Agree']], label='I believe that firm A is willing to take CSR activities.') f_q2 = models.StringField(blank=True, choices=[['1 Disagree', '1 Disagree'], ['2', '2'], ['3', '3'], ['4 Neither Agree', '4 Neither Agree'], ['5', '5'], ['6', '6'], ['7 Agree', '7 Agree']], label='The top message of firm A is exaggerated compared to actual CSR performance.') inv_portfolio = models.IntegerField(blank=True, label='How much do you allocate to company A?', min=0)