view _test/Resources/form.schema @ 14:65a7bb156fb7

Дом модель и схема
author Sergey
date Fri, 04 Sep 2009 16:38:15 +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>