<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> <#-- Template for editing a user account --> <#assign strings = i18n() />

${strings.user_accounts_link} > ${strings.edit_account}

<#if errorEmailIsEmpty??> <#assign errorMessage = strings.error_no_email /> <#elseif errorEmailInUse??> <#assign errorMessage = strings.error_email_already_exists /> <#elseif errorEmailInvalidFormat??> <#assign errorMessage = strings.error_invalid_email(emailAddress) /> <#elseif errorExternalAuthIdInUse??> <#assign errorMessage = strings.error_external_auth_already_exists /> <#elseif errorFirstNameIsEmpty??> <#assign errorMessage = strings.error_no_first_name /> <#elseif errorLastNameIsEmpty??> <#assign errorMessage = strings.error_no_last_name /> <#elseif errorNoRoleSelected??> <#assign errorMessage = strings.error_no_role /> <#elseif errorPasswordIsEmpty??> <#assign errorMessage = strings.error_no_password /> <#elseif errorPasswordIsWrongLength??> <#assign errorMessage = strings.error_password_length(minimumLength, maximumLength) /> <#elseif errorPasswordsDontMatch??> <#assign errorMessage = strings.error_password_mismatch /> <#if errorMessage?has_content>
<#if externalAuthPermitted??> <#include "userAccounts-associateProfilePanel.ftl">

checked />${strings.external_auth_only}

<#if roles?has_content>

${strings.roles} *

<#list roles as role>
<#if emailIsEnabled??>
class="hidden" role="region"> checked />

${strings.reset_password_note}

<#else>
class="hidden" role="region">

${strings.minimum_password_length(minimumLength)}
${strings.leave_password_unchanged}

${strings.or} ${strings.cancel_link}

* ${strings.required_fields}

${stylesheets.add('')} ${stylesheets.add('')} ${scripts.add('', '', '', '')}