#requireResource("confluence.web.resources:aui-forms")
#applyDecorator("root")
#decoratorParam("context" "profile")
#decoratorParam("mode" "settings")
#decoratorParam("helper" $action.helper)
#decoratorParam("infopanel-width" "200px")
#if($action.undoSettingsNeeded)
#applyDecorator("success")
$undoConfirmationLabel
$i18n.getText('undo.word')
#end
#end
#applyDecorator("form-aui")
#decoratorParam("formName" "editemailsettingsform")
#decoratorParam("submitAction" "doeditmyemailsettings.action")
#decoratorParam("editAction" "editmyemailsettings.action")
#decoratorParam("editMode" "$editMode")
$action.getText("title.edit.email.preferences")
#bodytag( "Component" "label='watch.my.content'" "name='watchMyOwnContent'" "value=$watchMyOwnContent" "theme='aui'" "template='onofflist.vm'")
#param ("description" "$action.getText('watch.my.content.desc')")
#end
#bodytag( "Component" "label='receive.daily.change.email'" "name='notifyByEmail'" "value=$notifyByEmail" "theme='aui'" "template='onofflist.vm'")
#param ("description" "$action.getText('receive.daily.change.email.desc')")
#end
#bodytag( "Component" "label='receive.change.emails.for.all.blogs'" "name='siteBlogWatchForUser'" "value=$siteBlogWatchForUser" "theme='aui'" "template='onofflist.vm'")
#param ("description" "$action.getText('receive.change.emails.for.all.blogs.desc')")
#end
#bodytag( "Component" "label='receive.change.emails.for.network'" "name='watchingNetwork'" "value=$watchingNetwork" "theme='aui'" "template='onofflist.vm'")
#param ("description" "$action.getText('receive.change.emails.for.network.desc')")
#end
#bodytag( "Component" "label='receive.change.emails.for.new.followers'" "name='notifyOnNewFollowers'" "value=$notifyOnNewFollowers" "theme='aui'" "template='onofflist.vm'")
#param ("description" "$action.getText('receive.change.emails.for.new.followers.desc')")
#end
#bodytag( "Component" "label='notify.for.my.own.actions'" "name='notifyForMyOwnActions'" "value=$notifyForMyOwnActions" "theme='aui'" "template='onofflist.vm'")
#param ("description" "$action.getText('notify.for.my.own.actions.desc')")
#end
## TODOXHTML CONFDEV-3278
## Might allow selection of mime type in the future, so only commented out.
## #bodytag( "Select" "id=mimeType" "label='email.format'" "name='mimeType'" "value=mimeType" "list=mimeTypes" "listKey=value" "listValue=key" "theme='aui'")
## #param ("description" "$action.getText('email.format.desc')")
## #end
#bodytag( "Component" "label='email.prefs.show.diff'" "name='showDiffInEmailNotifications'" "value=$showDiffInEmailNotifications" "theme='aui'" "template='onofflist.vm'")
#param ("description" "$action.getText('email.prefs.show.diff.desc')")
#end
#if($action.getText('daily.summary.email.settings.receive') != 'daily.summary.email.settings.receive')
#bodytag( "Component" "label='daily.summary.email.settings.receive'" "name='receiveRecommendedEmail'" "value=$receiveRecommendedEmail" "theme='aui'" "template='onofflist.vm'")
#param ("description" "$action.getText('daily.summary.email.settings.receive.desc')")
#end
#end
##bodytag( "Radio" "name='receiveSummaryEmail'" "value=receiveSummaryEmail"
## "list={'weekly', 'daily', 'none'}" "theme='aui'" "template='i18n-convention-radiolist.vm'")
## #param("i18nPrefix" "daily.summary.email.settings.receive")
##end
## TODOXHTML CONFDEV-3279
## #bodytag( "Component" "label='email.prefs.show.full.content'" "name='showFullContentInEmailNotifications'" "value=$showFullContentInEmailNotifications" "theme='aui'" "template='onofflist.vm'")
## #param ("description" "$action.getText('email.prefs.show.full.content.desc')")
## #end
#form_xsrfToken()
#tag( "Submit" "theme='aui'" )
#end
#end