view schemas/user.xml @ 14:d997ff96acf1

sync
author sergey
date Mon, 19 May 2014 18:34:16 +0400
parents fa7a99c2d079
children
line wrap: on
line source

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