#menu_item_index

  %ul.breadcrumb
    = link_to 'Ajouter un élément au menu', new_admin_menu_item_path(:menu_id => @menu.id, :parent_id => params[:parent_id]), :class => "btn btn-primary",:remote => true, :style => "float:right;"
    %li
      =link_to @menu.name, admin_menu_items_path(:menu_id => @menu.id),:remote => true
      %span.divider /
    -if @menu_parent
      -@menu_parent.ancestors.reverse.each do |menu_item|
        %li
          =link_to menu_item.name, admin_menu_items_path(:menu_id => @menu.id, :parent_id =>menu_item.id), :remote => true
          %span.divider /
      
      %li
        =@menu_parent.name
        %span.divider /
    %p{:style => "clear:both;"}
  
  

  -if @menu_parent
    .prevv_folder.receptable{:data => {:menu_id => @menu.id, :parent_id => (@menu_parent.parent ? @menu_parent.parent.id : "no-menu-selected")} }
      .row-fluid
        .span1
          =i(:"folder-close", :icon => false)
  

        .span2=link_to "...", admin_menu_items_path(:menu_id => @menu.id, :parent_id => (@menu_parent.parent ? @menu_parent.parent.id : nil)), :remote => true
    
        .span3
    
        .span4
      
      
        .span2.actions
        

  #sortable_menu_item{:data => {:menu_id => @menu.id, :parent_id => (@menu_parent ? @menu_parent.id : "")} }
  
    
          
    
          

      
      
    -if @menu_items.size > 0
      =render @menu_items
    -else
      .no_menu_items
        Il n'y a aucun éléments de menu actuellement.
        
  :javascript

    init_menu_items_list();