Compare commits
No commits in common. "b37a0a2080327e110efe96a8e2f261b9c3b34d72" and "4ced7076355171f485b1c59a4ad1a4d854c4c751" have entirely different histories.
b37a0a2080
...
4ced707635
@ -17,10 +17,6 @@
|
||||
|
||||
|
||||
%table.table.table-striped
|
||||
|
||||
-emails = []
|
||||
|
||||
|
||||
-p_contacts = @p_customer.p_contacts
|
||||
-@p_customer.particulars.each do |p|
|
||||
-p_contacts = p_contacts + p.p_contacts
|
||||
@ -34,7 +30,6 @@
|
||||
|
||||
%td
|
||||
=p_c.email
|
||||
-emails << p_c.email
|
||||
|
||||
%td
|
||||
=p_c.civilite
|
||||
@ -47,24 +42,9 @@
|
||||
|
||||
%td
|
||||
=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
|
||||
=submit_tag "Envoyer le document par mail", :class => "btn btn-primary"
|
||||
-else
|
||||
Aucun contact pour ce client.
|
||||
=submit_tag "Envoyer le document par mail", :class => "btn btn-primary"
|
Loading…
x
Reference in New Issue
Block a user