diff schemas/user.xml @ 7:fa7a99c2d079

dox library templates and schemas
author sergey
date Wed, 14 May 2014 01:22:21 +0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/schemas/user.xml	Wed May 14 01:22:21 2014 +0400
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema>
+    <Include source="form.types.xml"/>
+    <ComplexNode name="login">
+        <NodeSet>
+            <Node name="login" type="login"/>
+            <SimpleNode name="password" template="dojo/form/Input" inputType="password"/>
+        </NodeSet>
+    </ComplexNode>
+    <ComplexNode name="register" binding-type='Benzin::Security::Ldap::User'>
+        <NodeSet>
+            <Node name="name" type="login"/>
+            <Node name="password" type="password"/>
+            <Node name="password2" type="password_retype" linkedField="password"/>
+            <Node name="givenName" minOccur="0" type="text"/>
+            <Node name="sn" minOccur="0" type="text"/>
+            <Node name="telephoneNumber" type="text" minOccur="0"/>
+            <Node name="mail" type="email" minOccur="0"/>
+            <Node name="roomNumber" type="text" minOccur="0"/>
+            <Node name="departmentNumber" type="text" minOccur="0"/>
+        </NodeSet>
+    </ComplexNode>
+    <ComplexNode name="edit" binding-type='Benzin::Security::Ldap::User'>
+        <NodeSet messageMin="ID:ElementIsRequired">
+            <Node name="givenName" minOccur="0" type="text"/>
+            <Node name="sn" minOccur="0" type="text"/>
+            <Node name="telephoneNumber" type="text" minOccur="0"/>
+            <Node name="mail" type="email" minOccur="0"/>
+            <Node name="roomNumber" type="text" minOccur="0"/>
+            <Node name="departmentNumber" type="text" minOccur="0"/>
+        </NodeSet>
+    </ComplexNode>
+    <ComplexNode name="passwd">
+        <NodeSet messageMin="ID:ElementIsRequired">
+            <Node name="oldPassword" type="password"/>
+            <Node name="password" type="password"/>
+            <Node name="password2" type="password_retype" linkedField="password"/>
+        </NodeSet>
+    </ComplexNode>
+    <ComplexNode name="roles">
+    	<NodeSet>
+    		<SimpleNode name="roles" data-source-name="system-roles" binding-type="Benzin::Security::Ldap::Group" template='dojo/form/CheckboxSelect' minOccur="0" maxOccur="unbounded"/>
+    	</NodeSet>
+    </ComplexNode>
+</schema>
\ No newline at end of file