53 lines
1.3 KiB
Plaintext
Executable File
53 lines
1.3 KiB
Plaintext
Executable File
#annonce_cat_index
|
|
|
|
%ul.breadcrumb
|
|
= link_to 'Ajouter une catégorie', new_admin_annonce_cat_path(:parent_id => params[:parent_id]), :class => "btn btn-primary",:remote => true, :style => "float:right;"
|
|
%li
|
|
-if @annonce_cat_parent
|
|
-@annonce_cat_parent.ancestors.reverse.each do |annonce_cat|
|
|
%li
|
|
=link_to annonce_cat.name, admin_annonce_cats_path( :parent_id =>annonce_cat.id), :remote => true
|
|
%span.divider /
|
|
|
|
%li
|
|
=@annonce_cat_parent.name
|
|
%span.divider /
|
|
%p{:style => "clear:both;"}
|
|
|
|
|
|
|
|
-if @annonce_cat_parent
|
|
.prevv_folder.receptable{:data => { :param_test => true, :parent_id => (@annonce_cat_parent.parent ? @annonce_cat_parent.parent.id : "no-menu-selected")} }
|
|
.row-fluid
|
|
.span1
|
|
=i(:"folder-close", :icon => false)
|
|
|
|
|
|
.span2=link_to "...", admin_annonce_cats_path( :parent_id => (@annonce_cat_parent.parent ? @annonce_cat_parent.parent.id : nil)), :remote => true
|
|
|
|
.span3
|
|
|
|
.span4
|
|
|
|
|
|
.span2.actions
|
|
|
|
|
|
#sortable_annonce_cat{:data => {:parent_id => (@annonce_cat_parent ? @annonce_cat_parent.id : "")} }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-if @annonce_cats.size > 0
|
|
=render @annonce_cats
|
|
-else
|
|
.no_annonce_cats
|
|
Il n'y a aucun éléments de menu actuellement.
|
|
|
|
:javascript
|
|
|
|
init_annonce_cats_list(); |