diff _test/Resources/form.schema @ 10:63f6653b094e

DOM
author Sergey
date Fri, 28 Aug 2009 16:26:20 +0400
parents
children 16795016e70b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/_test/Resources/form.schema	Fri Aug 28 16:26:20 2009 +0400
@@ -0,0 +1,29 @@
+<?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>
+