negos_app/app/views/public/needs/_form.html.haml

11 lines
774 B
Plaintext
Executable File

= semantic_form_for [:public, @need] do |f|
=f.inputs do
= f.input :title, :label => "Titre de votre besoin"
= f.input :category, :as => :select, include_blank: "Toute catégorie", :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 :devis, type: :file, :label => "Devis/Offre (Fichier au format PDF)"
= f.input :note, :label => "Informations supplémentaires (visibles uniquement par les administrateurs Négos)", :rows => 5, :input_html => {:style => "height:100px;"}
%br
=f.submit "Sauvegarder", :class => "btn btn-primary"