#menu_item_index

  #menu_item_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;"
  
    =link_to @menu.name, admin_menu_items_path(:menu_id => @menu.id),:remote => true, :class => "root"

    -if @menu_parent
      -@menu_parent.ancestors.reverse.each do |menu_item|
      
        -menu_item_lang = menu_item.menu_item_langs.find_by_lang_site_id(@lang.id)
        
      
        =link_to menu_item_lang.name, admin_menu_items_path(:menu_id => @menu.id, :parent_id =>menu_item.id), :remote => true, :class => "child"

      
    

      -menu_item_lang = @menu_parent.menu_item_langs.find_by_lang_site_id(@lang.id)
      %span=menu_item_lang.name
     

  
  

  -if @menu_parent
    .prevv_folder.receptable{:style => "padding:10px;", :data => {:menu_id => @menu.id, :parent_id => (@menu_parent.parent ? @menu_parent.parent.id : "no-menu-selected")} }

      =link_to ic(:"folder"), admin_menu_items_path(:menu_id => @menu.id, :parent_id => (@menu_parent.parent ? @menu_parent.parent.id : nil)), :remote => true


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

  #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();
    
:scss
  

  
  #menu_item_index{
    
    .prevv_folder.hovered { 

      background:rgba(143,202,70,0.8);
    
     }
    
    .receptable.hovered { 
    .btn{
      background:rgba(143,202,70,0.8);
    }
     }
    
    .ui-sortable-helper{
      opacity:0.5;
    }
    
    .ui-sortable-placeholder{
      height:10px;
      background:rgba(143,202,70,0.8);
      visibility:visible !important;
    }
  }
