@(account: Option[model.Account], info: Option[Any])(implicit context: app.Context) @import context._ @import view.helpers._ @import util.AccountUtil @html.main((if(account.isDefined) "Edit your profile" else "Create your account")){ @helper.html.information(info) @if(account.isDefined && AccountUtil.hasLdapDummyMailAddress(account.get)) {
Please register your mail address.
} @if(account.isDefined){

Edit your profile

} else {

Create your account

}
@if(account.isEmpty){
} @if(account.map(_.password.nonEmpty).getOrElse(true)){
}
@helper.html.uploadavatar(account)
@if(account.isDefined){ @if(!AccountUtil.hasLdapDummyMailAddress(account.get)){ Cancel } } else { }
}