Nicolas Bally f20fe482c6 initial
2020-04-06 10:38:07 +02:00

37 lines
1.2 KiB
Plaintext

=semantic_form_for [:admin, @price_document], :html => {:class => "qi_price_form"}, :remote => false do |form|
-@p_customer = @price_document.p_customer
=#debug form.object.errors.messages
.qi_row
.qi_pannel.qi_plain.padding
=form.hidden_field :price_document_type_id
%label Client :
-if form.object.p_customer and form.object.p_customer.particular
=render :partial => "admin/p_customers/apercu", :locals => {:particular => form.object.p_customer.particular}
%br
= form.input :s_project_id, :collection => (@p_customer.s_projects.order("p_number DESC").all if @p_customer), :as => :select, :member_label => :member_label, :include_blank => true, :label => "Projet : ", :input_html => {:class => ""}
=form.input :libelle, :label => "Libellé comptable :"
=form.input :date, :as => :date
=form.inputs do
.price_line_block_form
=form.semantic_fields_for :price_line_block do |f|
=render :partial => "admin/price_line_blocks/price_document_form", :locals => {:f => f}
.large_actions
.actions
=form.submit "sauvegarder", :class => "btn btn-primary"