2016-02-16 21:09:48 +01:00

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"