=semantic_form_for [:admin, @category] do |f|
  .content


    =f.inputs do
      =f.input :domains, :label => "Domaine : ", :collection => Domain.all, :as => :check_boxes
      
      =f.input :parent_id,   :as => :select, :collection => @tree.map{|c| [(c.level > 0 ? ('&nbsp;&nbsp;&nbsp;' * (c.level - 1)) + "|- ": "").html_safe + c.name,  c.id]}, label: "Catégorie parente"
      =f.input :name, :label => "Nom de la catégorie : "

  .actions= f.submit "Sauvegarder", :class => "btn btn-primary"
