view 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 source

<?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>