comparison _test/Resources/form.schema @ 15:16795016e70b

Dom schema in progress
author Sergey
date Mon, 07 Sep 2009 17:30:55 +0400
parents 63f6653b094e
children 16ada169ca75
comparison
equal deleted inserted replaced
14:65a7bb156fb7 15:16795016e70b
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <schema> 2 <schema>
3 <Include src="forms.schema"/> 3 <Include src="forms.schema"/>
4 <Form 4 <Form
5 dataObject="App::Data::User" 5 type="Form"
6 dataPolicy="AddOrUpdate" 6 dataPolicy="AddOrUpdate"
7 messageMin="Вы не заполнили %Node.formLabel.%" 7 dataType="App::Data::User"
8 messageMin="Вы не заполнили %Node.formLabel_blame%"
8 > 9 >
9 <EditBox nodeName="Name" 10 <Name
10 formLabel="Имя" 11 formLabel="Имя"
11 formLabel.blame="имя" 12 formLabel_blame="имя"
12 formLabel.no="имени" 13 formLabel_no="имени"
14 type="EditBox"
13 /> 15 />
14 <EditBox nodeName="Nick" 16 <!-- Опциональный элемент -->
17 <Nick
15 formLabel="Прозвище" 18 formLabel="Прозвище"
16 formLabel.no="прозвища" 19 formLabel_no="прозвища"
17 minOccur="0" 20 minOccur="0"
21 type="EditBox"
18 > 22 >
19 <RegExp>\w{4,10}</RegExp> 23 <RegExp>\w{4,10}</RegExp>
20 </EditBox> 24 </Nick>
21 <ListBox nodeName="Role" 25 <Role
22 dataObject="App::Data::Role" 26 dataType="App::Data::Role"
23 dataSource="roles" 27 dataSource="roles"
24 formLabel="Роль" 28 formLabel="Роль"
25 formLabel.blame="роль" 29 formLabel_blame="роль"
30 type="MultiSelect"
31 maxOccur="unbounded"
26 /> 32 />
33 <Contacts
34 minOccur="0"
35 maxOccur="unbounded"
36 formLabel="Контакты"
37 dataType="App::Data::Contacts"
38 type="Container"
39 >
40 <NodeSet>
41 <EMail
42 type="EditBox"
43 minOccur="0"
44 formLabel="Эл. почта"
45 formLabel_no="эл. почты"
46 />
47 <Phone
48 type="EditBox"
49 minOccur="0"
50 formLabel="Телефон"
51 formLabel_no="телефона"
52 />
53 </NodeSet>
54 </Contacts>
27 </Form> 55 </Form>
56
28 </schema> 57 </schema>
29 58