view _test/Resources/form.schema @ 11:75980091813b

DOM и навигация
author Sergey
date Wed, 02 Sep 2009 17:47:44 +0400
parents 63f6653b094e
children 16795016e70b
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<schema>
    <Include src="forms.schema"/>
    <Form
        dataObject="App::Data::User"
        dataPolicy="AddOrUpdate"
        messageMin="Вы не заполнили %Node.formLabel.%"
    >
        <EditBox nodeName="Name"
            formLabel="Имя"
            formLabel.blame="имя"
            formLabel.no="имени"
        />
        <EditBox nodeName="Nick"
            formLabel="Прозвище"
            formLabel.no="прозвища"
            minOccur="0"
        >
            <RegExp>\w{4,10}</RegExp>
        </EditBox>
        <ListBox nodeName="Role"
            dataObject="App::Data::Role"
            dataSource="roles"
            formLabel="Роль"
            formLabel.blame="роль"
        />
    </Form>
</schema>