<!-- BEGIN [% template.name %] -->
  [% META title = 'User &raquo; Change User Email' -%]

    [% # PROCESS dumper.tt dump = user_locations %]

    [% change_user_email_dfv_js %]

	<h2 align="center">Change registered e-mail address</h2>

    [% user_profile = c.session.param('UserProfile');
		# PROCESS dumper.tt dump = user_profile %]
	
    <form method="post" action="[% app_url %]/user/do_change_email/[% user_profile.id %]"
      name="change_location" id="change_location" [% change_user_email_onsubmit %]>
		<table class="indent">
			<tr>
				<td class="label">Current email:</td>
				<td class="content">
					<input type="text" size="20" name="" [% site.html.disabled %]
                        value="[% user_profile.email %]" />
				</td>
			</tr>
			<tr>
				<td class="label">New email:</td>
				<td class="content">
                    <input type="text" size="20" name="email" />
                    [% error_email %]
				</td>
			</tr>
            <tr>
                <td class="label">Confirm email:</td>
                <td class="content">
                    <input type="text" name="email2" size="20" />
					[% error_email2 %]
                </td>
            </tr>
            <tr>
                <td class="label">Password:</td>
                <td class="content">
                    <input type="password" name="password" size="20" />
					[% error_password %]
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center" class="borderless">
					[% site.html.submit %]
				</td>
            </tr>
        </table>
    </form>
<!-- END [% template.name %] -->

