suite
This commit is contained in:
parent
bfa4bd900b
commit
b37a0a2080
@ -17,6 +17,10 @@
|
|||||||
|
|
||||||
|
|
||||||
%table.table.table-striped
|
%table.table.table-striped
|
||||||
|
|
||||||
|
-emails = []
|
||||||
|
|
||||||
|
|
||||||
-p_contacts = @p_customer.p_contacts
|
-p_contacts = @p_customer.p_contacts
|
||||||
-@p_customer.particulars.each do |p|
|
-@p_customer.particulars.each do |p|
|
||||||
-p_contacts = p_contacts + p.p_contacts
|
-p_contacts = p_contacts + p.p_contacts
|
||||||
@ -30,6 +34,7 @@
|
|||||||
|
|
||||||
%td
|
%td
|
||||||
=p_c.email
|
=p_c.email
|
||||||
|
-emails << p_c.email
|
||||||
|
|
||||||
%td
|
%td
|
||||||
=p_c.civilite
|
=p_c.civilite
|
||||||
@ -43,9 +48,23 @@
|
|||||||
%td
|
%td
|
||||||
=p_c.p_contact_types.map { |pct| pct.name}.join(" | ")
|
=p_c.p_contact_types.map { |pct| pct.name}.join(" | ")
|
||||||
|
|
||||||
|
-if !emails.include?(@p_customer.email)
|
||||||
|
%tr
|
||||||
|
%td
|
||||||
|
= check_box_tag :"emails[]", @p_customer.email, (true if params[:emails].include?(@p_customer.email.to_s)), {:id => "emails_#{@p_customer.email}"}
|
||||||
|
|
||||||
|
%td
|
||||||
|
=@p_customer.email
|
||||||
|
|
||||||
|
%td{:colspan => 4}
|
||||||
|
Email général de la fiche client
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-if p_contacts.uniq.size > 0
|
-if p_contacts.uniq.size > 0
|
||||||
=submit_tag "Envoyer le document par mail", :class => "btn btn-primary"
|
=submit_tag "Envoyer le document par mail", :class => "btn btn-primary"
|
||||||
|
-else
|
||||||
|
Aucun contact pour ce client.
|
Loading…
x
Reference in New Issue
Block a user