2011-05-18 21:47:44 +00:00
|
|
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
|
|
|
|
|
|
|
<#-- Template for adding a user account -->
|
|
|
|
|
2011-06-13 17:02:55 +00:00
|
|
|
<h3><a class="account-menu" href="accountsAdmin">User accounts</a> > Add new account</h3>
|
2011-05-18 21:47:44 +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-15 19:51:46 +00:00
|
|
|
<#if errorExternalAuthIdInUse??>
|
|
|
|
<#assign errorMessage = "An account with that external authorization ID already exists." />
|
|
|
|
</#if>
|
|
|
|
|
2011-05-18 21:47:44 +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 errorNoRoleSelected??>
|
|
|
|
<#assign errorMessage = "You must select a role." />
|
|
|
|
</#if>
|
|
|
|
|
2011-05-25 20:03:02 +00:00
|
|
|
<#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>
|
|
|
|
|
2011-05-18 21:47:44 +00:00
|
|
|
<#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>
|
|
|
|
|
2011-05-25 02:29:29 +00:00
|
|
|
<section id="add-account" role="region">
|
|
|
|
<fieldset>
|
|
|
|
<legend>Add new account</legend>
|
|
|
|
|
|
|
|
<form method="POST" action="${formUrls.add}" class="customForm" role="add new account">
|
|
|
|
<label for="email-address">Email address<span class="requiredHint"> *</span></label>
|
|
|
|
<input type="text" name="emailAddress" value="${emailAddress}" id="email-address" role="input "/>
|
|
|
|
|
|
|
|
<label for="first-name">First name<span class="requiredHint"> *</span></label>
|
|
|
|
<input type="text" name="firstName" value="${firstName}" id="first-name" role="input "/>
|
|
|
|
|
|
|
|
<label for="last-name">Last name<span class="requiredHint"> *</span></label>
|
|
|
|
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input "/>
|
|
|
|
|
2011-06-28 12:15:51 +00:00
|
|
|
<label for="external-auth-id">External authorization ID</label>
|
2011-06-15 19:51:46 +00:00
|
|
|
<input type="text" name="externalAuthId" value="${externalAuthId}" id="external-auth-id" role="input "/>
|
|
|
|
|
2011-05-25 02:29:29 +00:00
|
|
|
<p>Roles<span class="requiredHint"> *</span> </p>
|
|
|
|
<#list roles as role>
|
2011-06-15 20:10:01 +00:00
|
|
|
<input type="radio" name="role" value="${role.uri}" role="radio" <#if selectedRole = role.uri>checked</#if> />
|
2011-05-25 02:29:29 +00:00
|
|
|
<label class="inline" for="${role.label}"> ${role.label}</label>
|
|
|
|
<br />
|
|
|
|
</#list>
|
|
|
|
|
2011-05-25 20:03:02 +00:00
|
|
|
<#if !emailIsEnabled??>
|
|
|
|
<label for="initial-password">Initial password<span class="requiredHint"> *</span></label>
|
|
|
|
<input type="password" name="initialPassword" value="${initialPassword}" id="initial-password" role="input "/>
|
|
|
|
|
2011-05-26 16:29:33 +00:00
|
|
|
<p>Minimum of ${minimumLength} characters in length.</p>
|
|
|
|
|
2011-05-25 20:03:02 +00:00
|
|
|
<label for="confirm-password">Confirm initial password<span class="requiredHint"> *</span></label>
|
|
|
|
<input type="text" name="confirmPassword" value="${confirmPassword}" id="confirm-password" role="input "/>
|
|
|
|
</#if>
|
|
|
|
|
2011-05-25 02:29:29 +00:00
|
|
|
<p>Associate a profile with this account</p>
|
|
|
|
<input type="radio" name="associate" value="yes" role="radio" <#if associate??>checked</#if> id="associate" />
|
|
|
|
<label class="inline" for="associate"> Yes</label>
|
|
|
|
|
|
|
|
<input type="radio" name="associate" value="no" role="radio" <#if !associate??>checked</#if> id="no-associate" />
|
|
|
|
<label class="inline" for="no-associate"> No</label>
|
|
|
|
|
2011-05-25 20:03:02 +00:00
|
|
|
<#if emailIsEnabled??>
|
|
|
|
<p class="note">
|
|
|
|
Note: An email will be sent to the address entered above
|
|
|
|
notifying that an account has been created.
|
|
|
|
It will include instructions for activating the account and creating a password.
|
|
|
|
</p>
|
|
|
|
</#if>
|
|
|
|
|
2011-06-13 17:02:55 +00:00
|
|
|
<input type="submit" name="submitAdd" value="Add new account" class="submit"/> or <a class="cancel" href="${formUrls.list}">Cancel</a>
|
2011-05-25 02:29:29 +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-05-25 02:29:29 +00:00
|
|
|
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
|