2011-06-01 15:32:00 +00:00
|
|
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
|
|
|
|
|
|
|
<#-- Template for editing a user account -->
|
|
|
|
|
2011-06-13 19:58:58 +00:00
|
|
|
<h3>My account</h3>
|
2011-06-01 15:32:00 +00:00
|
|
|
|
|
|
|
<#if errorEmailIsEmpty??>
|
|
|
|
<#assign errorMessage = "You must supply an email address." />
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
<#if errorEmailInUse??>
|
|
|
|
<#assign errorMessage = "An account with that email address already exists." />
|
|
|
|
</#if>
|
|
|
|
|
2011-06-10 15:25:41 +00:00
|
|
|
<#if errorEmailInvalidFormat??>
|
|
|
|
<#assign errorMessage = "'${emailAddress}' is not a valid email address." />
|
|
|
|
</#if>
|
|
|
|
|
2011-06-01 15:32:00 +00:00
|
|
|
<#if errorFirstNameIsEmpty??>
|
|
|
|
<#assign errorMessage = "You must supply a first name." />
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
<#if errorLastNameIsEmpty??>
|
|
|
|
<#assign errorMessage = "You must supply a last name." />
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
<#if errorPasswordIsEmpty??>
|
|
|
|
<#assign errorMessage = "No password supplied." />
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
<#if errorPasswordIsWrongLength??>
|
|
|
|
<#assign errorMessage = "Password must be between ${minimumLength} and ${maximumLength} characters." />
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
<#if errorPasswordsDontMatch??>
|
|
|
|
<#assign errorMessage = "Passwords do not match." />
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
<#if errorMessage?has_content>
|
|
|
|
<section id="error-alert" role="alert">
|
|
|
|
<img src="${urls.images}/iconAlert.png" width="24" height="24" alert="Error alert icon"/>
|
|
|
|
<p>${errorMessage}</p>
|
|
|
|
</section>
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
<#if confirmChange??>
|
|
|
|
<#assign confirmMessage = "Your changes have been saved." />
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
<#if confirmEmailSent??>
|
|
|
|
<#assign confirmMessage = "Your changes have been saved. A confirmation email has been sent to ${emailAddress}." />
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
<#if confirmMessage?has_content>
|
2011-06-22 00:24:59 +00:00
|
|
|
<section class="account-feedback" role="alert">
|
|
|
|
<p><img class="middle" src="${urls.images}/iconConfirmation.png" alert="Confirmation icon"/> ${confirmMessage}</p>
|
2011-06-01 15:32:00 +00:00
|
|
|
</section>
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
<section id="my-account" role="region">
|
|
|
|
<fieldset>
|
|
|
|
<legend>My account</legend>
|
|
|
|
|
|
|
|
<form method="POST" action="${formUrls.myAccount}" class="customForm" role="my account">
|
|
|
|
<label for="email-address">Email address<span class="requiredHint"> *</span></label>
|
2011-06-13 19:58:58 +00:00
|
|
|
<input type="text" name="emailAddress" value="${emailAddress}" id="email-address" role="input" />
|
2011-06-01 15:32:00 +00:00
|
|
|
|
2011-06-13 19:58:58 +00:00
|
|
|
<p class="note">Note: if email changes, a confirmation email will be sent to the new email address entered above.</p>
|
|
|
|
|
2011-06-01 15:32:00 +00:00
|
|
|
<label for="first-name">First name<span class="requiredHint"> *</span></label>
|
2011-06-13 19:58:58 +00:00
|
|
|
<input type="text" name="firstName" value="${firstName}" id="first-name" role="input" />
|
2011-06-01 15:32:00 +00:00
|
|
|
|
|
|
|
<label for="last-name">Last name<span class="requiredHint"> *</span></label>
|
2011-06-13 19:58:58 +00:00
|
|
|
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input" />
|
2011-06-01 15:32:00 +00:00
|
|
|
|
|
|
|
<#if !externalAuth??>
|
2011-06-14 14:53:22 +00:00
|
|
|
<label for="new-password">New password</label>
|
2011-06-13 19:58:58 +00:00
|
|
|
<input type="password" name="newPassword" value="${newPassword}" id="new-password" role="input" />
|
2011-06-01 15:32:00 +00:00
|
|
|
|
2011-06-13 19:58:58 +00:00
|
|
|
<p class="note">Minimum of ${minimumLength} characters in length. Leaving this blank means that the password will not be changed.</p>
|
2011-06-01 15:32:00 +00:00
|
|
|
|
2011-06-14 14:53:22 +00:00
|
|
|
<label for="confirm-password">Confirm new password</label>
|
2011-06-13 19:58:58 +00:00
|
|
|
<input type="password" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input" />
|
2011-06-01 15:32:00 +00:00
|
|
|
</#if>
|
|
|
|
|
2011-06-13 19:58:58 +00:00
|
|
|
<p><input type="submit" name="submitMyAccount" value="Save changes" class="submit" /></p>
|
2011-06-01 15:32:00 +00:00
|
|
|
|
|
|
|
<p class="requiredHint">* required fields</p>
|
|
|
|
</form>
|
|
|
|
</fieldset>
|
|
|
|
</section>
|
|
|
|
|
2011-06-28 12:15:51 +00:00
|
|
|
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/account.css" />')}
|
2011-06-01 15:32:00 +00:00
|
|
|
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
|