view schemas/form.types.xml @ 16:e69c970c3ddd default tip

sync
author sergey
date Tue, 20 May 2014 01:28:48 +0400
parents fa7a99c2d079
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>