=semantic_form_for [:admin, @need] do |f| .content =f.inputs do =f.input :title, :label => "Titre : " =f.input :category, include_blank: "Toute catégorie", :as => :select, :collection => @tree.map{|c| [(c.level > 0 ? ('   ' * (c.level - 1)) + "|- ": "").html_safe + c.name, c.id]}, label: "Catégorie de besoin" =f.input :description, :label => "Description : ", :rows => 5, :input_html => {:style => "height:100px;"} =f.input :image_file_id, :label => "Image", :as => :qi_image_select =f.input :author, :label => "Auteur", include_blank: "Administrateur" =f.input :domains, :label => "Domaine : ", :collection => Domain.all, :as => :check_boxes =f.input :referent_technique, :label => "Référent technique : ", :collection => Customer.where(:referent => true).pluck(Arel.sql("CONCAT(`firstname`, ' ', `name`)"), :id) =f.input :referent_negos, :label => "Référent négociation : ", :collection => Customer.where(:referent => true).pluck(Arel.sql("CONCAT(`firstname`, ' ', `name`)"), :id) -#= f.input :note, :label => "Informations supplémentaires pour Négos (Si vous n'avez pas attaché de proposition, merci de préciser son prix dans ce champ)", :rows => 5, :input_html => {:style => "height:100px;"} .actions = f.submit "Sauvegarder", :class => "btn btn-primary"