<?xml version="1.0" encoding="UTF-8"?>
<form	xmlns="http://www.todoyu.com/schema/form"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:schemaLocation="http://www.todoyu.com/schema/form ../../../../core/config/form.xsd">
	<attributes>
		<attribute name="action">index.php?ext=profile&amp;controller=general</attribute>
		<attribute name="name">general</attribute>
		<attribute name="onsubmit">return false</attribute>
	</attributes>
	<fieldsets>

		<fieldset name="left">
			<legend>profile.form.legend.changePassword</legend>
			<class>left</class>
			<elements>

				<field type="text" name="password_old">
					<label>profile.ext.general.password.current</label>
					<type>password</type>
					<validate>
						<isNotEmpty msg="profile.ext.general.password.current.empty" />
						<user msg="profile.ext.general.password.current.wrong">
							<function>TodoyuContactValidator::isCurrentPassword</function>
						</user>
					</validate>
				</field>

				<field type="text" name="password_new1">
				<label>profile.ext.general.password.new1</label>
					<type>password</type>
					<validate>
						<goodPassword />
					</validate>
				</field>

				<field type="text" name="password_new2">
					<label>profile.ext.general.password.new2</label>
					<type>password</type>
					<validate>
						<isNotEmpty />
						<equals msg="profile.ext.general.password.notEqual">
							<field>password_new1</field>
						</equals>
					</validate>
				</field>

			</elements>
		</fieldset>

		<fieldset name="buttons">
			<legend>Actions</legend>
			<class>buttons</class>
			<elements>
				<field type="saveButton" name="save">
					<onclick>Todoyu.Ext.profile.General.savePassword(this.form)</onclick>
				</field>
			</elements>
		</fieldset>

	</fieldsets>
</form>