18 lines
580 B
Plaintext
18 lines
580 B
Plaintext
-semantic_form_for [:public, @annonce] do |f|
|
|
-@f = f
|
|
%h3 Informations supplémentaires
|
|
.col-sm-6
|
|
-if @annonce.specific_annonce
|
|
|
|
|
|
|
|
|
|
=@f.hidden_field :specific_annonce_type
|
|
-if @f.object.specific_annonce
|
|
=@f.fields_for :specific_annonce do |f|
|
|
=render :partial => "public/#{@annonce.specific_annonce_type.tableize}/form", :locals => {:f => f}
|
|
|
|
|
|
.col-sm-6
|
|
-if @annonce.annonce_cat_id?
|
|
=@f.input :tag_cats, :collection => TagCat.where(:annonce_cat_id => @annonce.annonce_cat_id).all, :as => :check_boxes, :label => "Autres informations" |