import random from random import randrange, random, randint from Introduction.config import * from otree.api import * from . import models author = 'Your name here' class Constants(BaseConstants): name_in_url = 'Intro' players_per_group = None num_rounds = 1 endowment = 10 instructions_template_Intro_0 = 'Intro/Instruction_Intro_0.html' instructions_template_Intro_1 = 'Intro/Instruction_Intro_1.html' instructions_template_Verstaendnis = 'Intro/Instruction_Verstaendnis.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): informed_consent = models.BooleanField() def informed_consent_error_message(player, value) : if not value : return 'Bitte bestaetigen Sie.' # ******************************************************************************************************************** # # *** PAGES *** # # ******************************************************************************************************************** # class Introduction_Intro_0(Page): form_model = "player" form_fields = ['informed_consent'] class Introduction_Intro_1(Page): pass # ******************************************************************************************************************** # # *** PAGE SEQUENCE *** # # ******************************************************************************************************************** # page_sequence = [ Introduction_Intro_0, Introduction_Intro_1 ]