16 lines
379 B
Plaintext
Executable File
16 lines
379 B
Plaintext
Executable File
|
|
|
|
|
|
=semantic_form_for [:admin, @annonce_cat], :remote => true do |f|
|
|
.content
|
|
|
|
|
|
= f.inputs do
|
|
|
|
= f.input :name, :label => "Nom :"
|
|
-collection = f.object.id ? AnnonceCat.where("id != ?", f.object.id).all : AnnonceCat.all
|
|
=f.input :parent_id, :collection => collection, :as => :select
|
|
|
|
.actions= f.submit "Sauvegarder", :class => "btn btn-primary"
|
|
|