class Round1(Page):
    form_model = 'player'
    form_fields = ['input2', 'input3', 'input4', 'input5']

    @staticmethod
    def error_message(player: Player, values):
        if values['input2'] + values['input3'] > 11:
            return "The total investment in Market1 must not exceed the initial capital."
        if values['input4'] + values['input5'] > 11:
            return "The total investment in Market2 must not exceed the initial capital."

