from otree.api import * class C(BaseConstants): NAME_IN_URL = 'basic_info' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): objectives= models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "研究の目的" ) methods = models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "実験の方法" ) researcher = models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "研究を実施する研究者" ) expenses = models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "研究のための費用" ) participants = models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "対象とする研究参加者" ) voluntariness= models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "実験への参加が任意であること(実験への参加は任意であり、参加しないことで不利益な対応を受けないこと。また、いつでも同意を撤回でき、撤回しても何ら不利益を受けないこと。)" ) danger = models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "この実験への参加に伴う危害の可能性" ) insurance = models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "傷害保険等への加入について" ) payment = models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "実験への参加に伴う謝金" ) results = models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "研究成果の公表について" ) privacy = models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "個人情報の取り扱いについて" ) ipr = models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "知的財産権の帰属" ) inquiry = models.IntegerField(choices=[ [1, "Yes"], [0, "No"], ], label = "問い合わせ先、苦情等の連絡先" ) year = models.IntegerField(choices = [ [3, "2023"], [4, "2024"] ], label = "年" ) month = models.IntegerField(choices = [ [1, "Jan."], [2, "Feb."], [3, "Mar."], [4, "Apr."], [5, "May"], [6, "Jun."], [7, "Jul."], [8, "Aug."], [9, "Sep."], [10, "Oct."], [11, "Nov."], [12, "Dec."] ], label = "月" ) day = models.IntegerField(choices = [ [1, "1st"], [2, "2nd"], [3, "3rd"], [4, "4th"], [5, "5th"], [6, "6th"], [7, "7th"], [8, "8th"], [9, "9th"], [10, "10th"], [11, "11th"], [12, "12th"], [13, "13th"], [14, "14th"], [15, "15th"], [16, "16th"], [17, "17th"], [18, "18th"], [19, "19th"], [20, "20th"], [21, "21st"], [22, "22nd"], [23, "23th"], [24, "24th"], [25, "25th"], [26, "26th"], [27, "27th"], [28, "28th"], [29, "29th"], [30, "30th"], [31, "31st"] ], label = "日" ) name = models.StringField(label = "研究参加者書名" ) # PAGES class Discription(Page): pass class Agreement(Page): form_model = 'player' form_fields = ["objectives", "methods", "researcher", "expenses", "participants", "voluntariness", "danger", "insurance", "payment", "results", "privacy", "ipr", "inquiry", "year", "month", "day", "name" ] @staticmethod def error_message(player, values): if values["objectives"] == 0 or values["methods"] == 0 or values["researcher"] == 0 or values["expenses"] == 0 or values["participants"] == 0 or values["voluntariness"] == 0 or values["danger"] == 0 or values["insurance"] == 0 or values["payment"] == 0 or values["results"] == 0 or values["privacy"] == 0 or values["ipr"] == 0 or values["inquiry"] == 0: return 'You cannot participate in the survey unless you agree to participate. Please consult the staff.
ඔබ සහභාගී වීමට එකඟ වන්නේ නම් මිස ඔබට අත්හදා බැලීම සඳහා සහභාගී විය නොහැක. කරුණාකර කාර්ය මණ්ඩලයෙන් විමසන්න.' page_sequence =[ Discription, Agreement ]