negos_app/app/views/admin/annonce_cats/_annonce_cat.html.haml
2016-02-16 21:09:48 +01:00

27 lines
1.0 KiB
Plaintext
Executable File

#annonce_cat_row.annonce_cat_row.row{:id => annonce_cat.id,:"data-menu-item-id" => annonce_cat.id}
.col-xs-2.receptable{:data => {:parent_id => annonce_cat.id}}
.btn-group
%span.handle.btn=i(:arrows, :icon => false)
=link_to (annonce_cat.children.size > 0 ? i(:"folder", :icon => false) : i(:"folder-o", :icon => false) )+(annonce_cat.children.size if annonce_cat.children.size > 0).to_s, admin_annonce_cats_path(:parent_id => annonce_cat.id), :remote => true, :class => "btn"
.col-xs-4
=annonce_cat.name
.col-xs-4
=#link_to "/"+annonce_cat.permalink+".html", annonce_cat_path(:url => annonce_cat.url)
.col-xs-2.actions
= link_to i(:"trash-o"), [:admin, annonce_cat], :data =>{:remote => true, :confirm => 'Voulez-vous vraiment supprimer cet élément de menu ?'}, :method => :delete #, if current_admin.super_admin? || !annonce_cat.super_admin
= link_to i(:pencil), edit_admin_annonce_cat_path(annonce_cat), :data => {:remote => true}