.row
  .col-md-4
    = f.input :name, :label => "Nom"
  .col-md-4
    = f.input :firstname, :label => "Prénom"
  .col-md-4
    =image_tag(f.object.avatar.square.url, :style => "height:4em;float:left;margin-right:10px;border-radius:50%;") if f.object.avatar
    = f.input :avatar, :label => "Image de profil"
    
.row
  .col-md-4
    = f.input :email, :label => "Email"
  .col-md-4
    = f.input :show_email, :label => "Permettre aux étudiants de voir mon mail ?" if f.object.id
.row
  .col-md-4
    = f.input :password, :label => "Mot de passe"
  .col-md-4
    = f.input :password_confirmation, :label => "Confirmation"
  .col-md-4
  
