%h1 M'inscrire au forum de Jipe

= semantic_form_for [:forum, @user] do |f| 
  =hidden_field_tag :by_facebook, params[:by_facebook] if params[:by_facebook]
  =f.inputs do 
    
    = f.input :firstname, :label => "Prénom"
    = f.input :name, :label => "Nom"
    = f.input :email, :label => "Email"
    -if !params[:by_facebook]
      = f.input :password, :label => "Mot de passe"
      = f.input :password_confirmation, :label => "Confirmation"
    
    
  %br
  =f.submit "Sauvegarder", :class => "btn btn-primary"
      
  