=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 :" =f.input :cms, :label => "Cms?" =f.input :donators, :label => "Dons?" =f.input :orders, :label => "Commandes?" =f.input :moderateur, :label => "Modération des commentaires ?" =f.input :newsletter, :label => "Accès newsletter ?" =f.input :label_role, :label => "label ?" .actions= f.submit "Sauvegarder", :class => "btn btn-primary"