view _test/Resources/form.schema @ 59:0f3e369553bd

Rewritten property implementation (probably become slower but more flexible) Configuration infrastructure in progress (in the aspect of the lazy activation) Initial concept for the code generator
author wizard
date Tue, 09 Mar 2010 02:50:45 +0300
parents 16ada169ca75
children
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<schema>
    <Include src="forms.schema"/>
    <Form
        type="Form"
        dataPolicy="AddOrUpdate"
        dataType="App::Data::User"
        messageMin="Вы не заполнили %Node.formLabel_blame%"
    >
        <Name
            formLabel="Имя"
            formLabel_blame="имя"
            formLabel_no="имени"
            type="EditBox"
        />
        <!-- Опциональный элемент -->
        <Nick
            formLabel="Прозвище"
            formLabel_no="прозвища"
            minOccur="0"
            type="EditBox"
        >
            <RegExp>\w{4,10}</RegExp>
        </Nick>
        <Role
            dataType="App::Data::Role"
            dataSource="roles"
            formLabel="Роль"
            formLabel_blame="роль"
            type="MultiSelect"
            maxOccur="unbounded"
        />
        <Contacts
            minOccur="0"
            maxOccur="unbounded"
            formLabel="Контакты"
            dataType="App::Data::Contacts"
            type="Container"
        >
            <NodeSet>
                <EMail
                    type="EditBox"
                    minOccur="0"
                    formLabel="Эл. почта"
                    formLabel_no="эл. почты"
                />
                <Phone
                    type="EditBox"
                    minOccur="0"
                    formLabel="Телефон"
                    formLabel_no="телефона"
                />
            </NodeSet>
        </Contacts>
    </Form>
    
</schema>