@(myForm: Form[models.Profile], allInstitutionOptions: List[String], allProjectOptions: List[String], emailtimes: Map[String,String])(implicit flash: play.api.mvc.Flash, user: Option[models.User]) @import helper._ @implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.f) } @main("Edit Profile") {
@if(myForm.hasErrors) {

Please fix all errors

} @flash.get("error").map { message =>

@message

} @form(action = routes.Profile.submitChanges, 'enctype -> "multipart/form-data", 'class -> "form-horizontal") {
@select(myForm("institution"), options(allInstitutionOptions), '_label -> "Institution", 'class -> "chosen-select", 'placeholder -> "Select or enter an institution...") @inputText(myForm("position"), 'class -> "form-control", '_label -> "Position")

Use Gravatar
Custom
@inputText(myForm("orcidID"), 'class -> "form-control", '_label -> "Orcid ID", 'title -> "ORCID provides a persistent digital identifier that distinguishes you from every other researcher and, through integration in key research workflows such as manuscript and grant submission, supports automated linkages between you and your professional activities ensuring that your work is recognized.") @textarea(myForm("biography"),'class -> "form-control", '_label -> "Biography") @select(myForm("currentprojects"), options(allProjectOptions), '_label -> "Current Projects", 'multiple -> "true", 'class -> "chosen-select form-control", 'placeholder -> "Add your projects") @select(myForm("pastprojects"), options(allProjectOptions), '_label -> "Past Projects", 'multiple -> "true", 'class -> "chosen-select form-control", 'placeholder -> "Add your projects") @select(myForm("emailsettings"), options(emailtimes), '_label -> "Email Settings")

An e-mail digest of activities that involve your followed objects.

@if(play.api.Play.current.plugin[services.StagingAreaPlugin].isDefined) {
@play.api.i18n.Messages("profile.disclaimer")
}
}
}