diff schemas/form.types.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/form.types.xml	Wed May 14 01:22:21 2014 +0400
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema>
+    <SimpleType
+        template="dojo/form/DateTextBox"
+        type="date"
+        inflator="Benzin::DateTime::Inflator.parse_date"
+        messageInflateError="ID:InvalidDateFormat"
+    />
+    <SimpleType
+        type="text"
+        template="dojo/form/Input"
+        inputType="text"
+    />
+    <SimpleType
+        type="password"
+        template="dojo/form/Input"
+        inputType="password"
+    />
+    <SimpleType
+        type="email"
+        template="dojo/form/Input"
+        inputType="text"
+    />
+    <SimpleType type="login" template="dojo/form/Input" inputType="text">
+        <RegExp message="ID:InvalidLoginFormat">^\w+$</RegExp>
+    </SimpleType>
+    <SimpleType type="password_retype" inputType="password" template="dojo/form/Input">
+        <Compare op="eq" message="ID:PasswordDoesntMatch" nodePath="siblings:*[nodeName eq '%source.linkedField%']" />
+    </SimpleType>
+</schema>
\ No newline at end of file