negos_app/app/views/admin/needs/_form.html.haml
Nicolas VARROT 1b11e9028b Field added
2016-03-17 19:29:22 +01:00

20 lines
995 B
Plaintext
Executable File

=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 :note, :label => "Informations supplémentaires pour Négos", :rows => 5, :input_html => {:style => "height:100px;"}
.actions
-if @need.devis?
= link_to ic(:download) + " Télécharger le devis attaché par l'émetteur", admin_need_download_devis_path(@need), class: "btn btn-default"
= f.submit "Sauvegarder", :class => "btn btn-primary"