


=semantic_form_for [:admin, @admin], :remote => true do |f| 
  .content
    %h3
      -if @admin.id
        Modifier un admin
      -else
        Ajouter un admin

    = f.inputs do

      = f.input :email, :label => "Email :"
  

      = f.input :username, :label => "Login :"


      = f.input :name, :label => "Nom :"



      = f.input :firstname, :label => "Prénom :"


      = f.input :password, :label =>  "Mot de passe :"


      = f.input :password_confirmation, :label =>  "Confirmation :"
      
 
  
  
  .actions= f.submit "Sauvegarder", :class => "btn btn-primary"

