@(account: Option[model.Account], info: Option[Any])(implicit context: app.Context) @import context._ @import view.helpers._ @html.main((if(account.isDefined) "Edit your profile" else "Create your account")){ @if(account.isDefined){

### Edit your profile

} else {

### Create your account

} @helper.html.information(info)
@if(account.isEmpty){
Username:
} @if(account.map(_.password.nonEmpty).getOrElse(true)){
Password @if(account.nonEmpty){ (input to change password) } :
}
Mail Address:
URL (optional):
Image (optional): @helper.html.uploadavatar(account)
@if(account.isDefined){ Cancel } else { }
}