$generalUtil.htmlEncode($pageTitle)

#requireResource("confluence.web.resources:jquery") #requireResource("confluence.web.resources:userprofilepicture") #applyDecorator("root") #decoratorParam("context" "profile") #decoratorParam("mode" "edit-profile") #decoratorParam("helper" $action.helper) #decoratorParam("infopanel-width" "200px")
$action.getText("user.profile.picture.edit.blurb")
#if ($fieldErrors) #if ($fieldErrors.get("userProfilePictureName"))

#foreach ($error in $fieldErrors.get("userProfilePictureName"))
#set( $message = $i18n.getText(${error}) ) #if( $message && $message != "" ) $message #else $error #end
#end

#end #end #form_xsrfToken()

#if ($fieldErrors.get("pictureUpload")) #foreach ($error in $fieldErrors.get("pictureUpload"))
#set( $message = $i18n.getText(${error}) ) #if( $message && $message != "" ) $message #else $error #end
#end #end
$action.getText("user.profile.picture.upload"): | $action.getText("user.profile.picture.upload.instructions") #tag( "Submit" "name='upload'" "value='upload.button'" "theme='notable'" )

#form_xsrfToken()

$action.getText("user.profile.picture.choose"): | #foreach ($item in $action.availableProfilePictures) #end
| #tag( "Submit" "name='delete'" "value='delete.name'" "theme='notable'" "id=userphoto-delete-button") #tag( "Submit" "name='save'" "value='user.profile.picture.set.as'" "theme='notable'" )

#end