negos_app/app/views/public/wishes/_form.html.haml
2017-05-18 01:21:04 +02:00

21 lines
916 B
Plaintext

= semantic_form_for [:public, @wish.need, @wish] do |f|
=f.inputs do
-if @wish.devis?
= link_to ic(:download) + " Télécharger votre proposition", download_devis_public_need_wish_path(@need, @wish), class: "btn btn-primary"
%br
%br
-else
= f.input :devis, type: :file, :label => "Votre proposition (Fichier au format PDF)"
= f.input :note, :label => "Informations supplémentaires (Si vous n'avez pas attaché de proposition, merci de préciser son prix dans ce champ)", :rows => 5, :input_html => {:style => "height:100px;"}
= f.input :qte, :label => "Quantité : ", :input_html => {:style => ""}
%br
.div.pull-right
=link_to ic(:"arrow-left") + " Revenir sur la page du besoin", public_need_path(@need),:class => "btn btn-default btn-square btn-lg "
=f.submit " Valider ma prise d'intérêt", :class => "btn btn-success btn-square btn-lg "