<?xml version="1.0" encoding="utf-8"?>
<form>
	<fieldset name="user_details">
		<field name="name" type="text"
			description="COM_ADMIN_USER_FIELD_NAME_DESC"
			label="COM_ADMIN_USER_HEADING_NAME"
			required="true"
			size="30"
		/>

		<field name="username" type="text"
			description="COM_ADMIN_USER_FIELD_USERNAME_DESC"
			label="COM_ADMIN_USER_FIELD_USERNAME_LABEL"
			required="true"
			size="30"
		/>

		<field name="password2" type="password"
			autocomplete="off"
			class="validate-password"
			description="COM_ADMIN_USER_FIELD_PASSWORD_DESC"
			field="password"
			filter="raw"
			label="JGLOBAL_PASSWORD"
			message="COM_ADMIN_USER_FIELD_PASSWORD1_MESSAGE"
			size="30"
			validate="equals"
		/>

		<field name="password" type="password"
			autocomplete="off"
			class="validate-password"
			description="COM_ADMIN_USER_FIELD_PASSWORD2_DESC"
			filter="raw"
			label="COM_ADMIN_USER_FIELD_PASSWORD2_LABEL"
			size="30"
			validate="password"
		/>

		<field name="email" type="email"
			class="validate-email"
			description="COM_ADMIN_USER_FIELD_EMAIL_DESC"
			label="JGLOBAL_EMAIL"
			required="true"
			size="30"
			validate="email"
		/>

		<field
			name="registerDate"
			type="calendar"
			class="readonly"
			label="COM_ADMIN_USER_FIELD_REGISTERDATE_LABEL"
			description="COM_ADMIN_USER_FIELD_REGISTERDATE_DESC"
			readonly="true"
			format="%Y-%m-%d %H:%M:%S"
			size="22"
			filter="user_utc"
		/>

		<field
			name="lastvisitDate"
			type="calendar"
			class="readonly"
			label="COM_ADMIN_USER_FIELD_LASTVISIT_LABEL"
			description="COM_ADMIN_USER_FIELD_LASTVISIT_DESC"
			readonly="true"
			format="%Y-%m-%d %H:%M:%S"
			size="22"
			filter="user_utc"
		/>

		<field
			name="id"
			type="text"
			class="readonly"
			label="JGLOBAL_FIELD_ID_LABEL"
			description ="JGLOBAL_FIELD_ID_DESC"
			default="0"
			readonly="true"
			filter="unset"
			/>

	</fieldset>

	<fields name="params">

		<!--  Basic user account settings. -->
		<fieldset name="settings" label="COM_ADMIN_USER_SETTINGS_FIELDSET_LABEL">

			<field name="admin_style" type="templatestyle"
				client="administrator"
				description="COM_ADMIN_USER_FIELD_BACKEND_TEMPLATE_DESC"
				label="COM_ADMIN_USER_FIELD_BACKEND_TEMPLATE_LABEL"
			>
				<option value="">JOPTION_USE_DEFAULT</option>
			</field>

			<field name="admin_language" type="language"
				client="administrator"
				description="COM_ADMIN_USER_FIELD_BACKEND_LANGUAGE_DESC"
				label="COM_ADMIN_USER_FIELD_BACKEND_LANGUAGE_LABEL"
			>
				<option value="">JOPTION_USE_DEFAULT</option>
			</field>

			<field name="language" type="language"
				client="site"
				description="COM_ADMIN_USER_FIELD_FRONTEND_LANGUAGE_DESC"
				label="COM_ADMIN_USER_FIELD_FRONTEND_LANGUAGE_LABEL"
			>
				<option value="">JOPTION_USE_DEFAULT</option>
			</field>

			<field name="editor" type="plugins" folder="editors"
				description="COM_ADMIN_USER_FIELD_EDITOR_DESC"
				label="COM_ADMIN_USER_FIELD_EDITOR_LABEL"
			>
				<option value="">JOPTION_USE_DEFAULT</option>
			</field>

			<field name="helpsite" type="helpsite"
				label="COM_ADMIN_USER_FIELD_HELPSITE_LABEL"
				description="COM_ADMIN_USER_FIELD_HELPSITE_DESC"
			>
				<option value="">JOPTION_USE_DEFAULT</option>
			</field>

			<field name="timezone" type="timezone"
				label="COM_ADMIN_USER_FIELD_TIMEZONE_LABEL"
				description="COM_ADMIN_USER_FIELD_TIMEZONE_DESC"
			>
				<option value="">JOPTION_USE_DEFAULT</option>
			</field>
		</fieldset>
	</fields>
</form>
