#* @vtlvariable name="protocol" type="java.lang.String" *#
$action.getActionName($action.getClass().getName())
mailservers
#parse ( "/template/includes/actionerrors.vm" )
#applyDecorator("form-aui")
$action.getText("${protocol}.mail.server.details")
#if ($action.actionName == "edit")
#decoratorParam("formName" "doeditmailserver")
#decoratorParam("submitAction" "doeditmailserver.action")
#else
#decoratorParam("formName" "docreatemailserver")
#decoratorParam("submitAction" "docreatemailserver.action")
#end
#decoratorParam("formStyle" "long-label")
#decoratorParam("editMode" "true")
#form_xsrfToken()
#bodytag ("TextField" "label='mail.server.name'" "name='name'" "theme='aui'" )
#param("description" $action.getText("mail.server.name.description"))
#param("autofocus" "true")
#end
#if ($protocol == "smtp")
#bodytag ("TextField" "label='mail.server.from.address'" "name='emailAddress'" "theme='aui'")
#param("description" $action.getText("mail.server.from.address.description"))
#end
#bodytag ("TextField" "label='mail.server.from.name'" "name='fromName'" "theme='aui'" )
#param("description" $action.getText("mail.server.from.name.description"))
#end
#bodytag ("TextField" "label='mail.server.subject.prefix'" "name='prefix'" "theme='aui'" )
#param("description" $action.getText("mail.server.subject.prefix.description"))
#end
#else
#tag ("TextField" "label='mail.server.to.address'" "name='emailAddress'" "theme='aui'")
#end
$action.getText("mail.server.host")
#if ($protocol == "smtp")
$action.getText("smtp.serverdetails.desc")
#end
#bodytag ("TextField" "label='mail.server.host'" "name='hostname'" "theme='aui'" )
#param("description" $action.getText("mail.server.host.description"))
#end
#bodytag ("TextField" "label='mail.server.port'" "name='port'" "theme='aui'" )
#param("description" $action.getText("mail.server.port.description"))
#end
#bodytag ("TextField" "label='mail.server.userName'" "name='userName'" "theme='aui'" )
#param("description" $action.getText("mail.server.userName.description"))
#end
#tag ("Password" "label='mail.server.password'" "name='password'" "theme='aui'")
#if ($protocol == "smtp")
#bodytag ("Component" "template='onofflist.vm'" "label='mail.server.tls.required'" "name='tlsRequired'" "theme='aui'")
#param("description" $action.getText("mail.server.tls.required.description"))
#end
$action.getText("common.words.or")
$action.getText("jndi.location")
#bodytag( "TextField" "label='jndi.location'" "name='jndiName'" "theme='aui'" )
#param("description" $action.getText("jndi.location.description"))
#end
#tag ("Hidden" "name='protocol'" "value=protocol")
#else
#tag( "Select" "label='protocol'" "name='protocol'" "value=protocol" "list=incomingProtocolList" "listKey=key" "listValue=key" "theme='aui'")
#end
#if ($action.actionName == "edit")
#tag ("Hidden" "name='id'" "value=id")
#end
#bodytag( "Submit" "theme='aui'")
#param ("editMode" true)
#end
#end