183 lines
4.7 KiB
Plaintext
183 lines
4.7 KiB
Plaintext
|
|
.center_content
|
|
|
|
#contenu_scroller
|
|
|
|
%h1 Mon compte
|
|
|
|
.right
|
|
=link_to ic(:lock)+" Modifier mon mot de passe", edit_password_public_p_customer_auths_path()
|
|
|
|
.clear
|
|
.doc_pannel
|
|
.row
|
|
.col-md-6
|
|
%h3 Mes informations personnelles
|
|
.particular_div
|
|
%p
|
|
-if current_p_customer.particular_ok?
|
|
%span.green
|
|
=ic :flag
|
|
Adresse remplie
|
|
-else
|
|
%span.orange
|
|
=ic :flag
|
|
Vérifiez vos coordonnées pour recevoir votre planche de stickers
|
|
|
|
|
|
|
|
-particular = current_p_customer.particular
|
|
-if particular
|
|
=particular.firstname
|
|
=particular.name
|
|
%br
|
|
-if particular.address_2?
|
|
|
|
=particular.address_2
|
|
%br
|
|
-if particular.address_3?
|
|
|
|
=particular.address_3
|
|
%br
|
|
-if particular.cp? or particular.city? or particular.country?
|
|
|
|
=particular.cp
|
|
|
|
=particular.city
|
|
|
|
=particular.country
|
|
%br
|
|
%p
|
|
=link_to "Modifier mes coordonnées", edit_public_particular_path(current_p_customer.particular)
|
|
|
|
%p
|
|
-if current_p_customer.sticker
|
|
%br
|
|
%span.green
|
|
=ic :flag
|
|
|
|
Planche de stickers envoyée
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.col-md-6
|
|
%h3
|
|
|
|
.rib
|
|
-if current_p_customer.valid_m_odr_rep_rib
|
|
%p
|
|
%span.green
|
|
=ic :flag
|
|
RIB validé
|
|
-rib = current_p_customer.valid_m_odr_rep_rib
|
|
|
|
.rib
|
|
IBAN :
|
|
=rib.iban.to_s.gsub(/(.{4})(?=.)/, '\1 \2')
|
|
%br
|
|
BIC :
|
|
=rib.bic
|
|
%br
|
|
= link_to "Modifier mon rib", edit_public_m_odr_rep_rib_path(current_p_customer.m_odr_rep_ribs.first)
|
|
|
|
-elsif current_p_customer.m_odr_rep_ribs.count > 0
|
|
%p
|
|
%span.orange
|
|
=ic :flag
|
|
RIB en cours de validation
|
|
|
|
-rib = current_p_customer.m_odr_rep_ribs.first
|
|
|
|
.rib
|
|
IBAN :
|
|
=rib.iban.to_s.gsub(/(.{4})(?=.)/, '\1 \2')
|
|
%br
|
|
BIC :
|
|
=rib.bic
|
|
|
|
|
|
-else
|
|
%p
|
|
%span.red
|
|
=ic :flag
|
|
RIB non renseigné
|
|
.rib= link_to "Ajouter mon rib", new_public_m_odr_rep_rib_path()
|
|
|
|
.clear
|
|
|
|
|
|
|
|
|
|
-c = current_p_customer.m_odr_primes.where(:state => "Virement envoyé").count
|
|
|
|
-if c > 0
|
|
%br
|
|
%br
|
|
|
|
%h3
|
|
Mes primes :
|
|
%br
|
|
%span{:style => "font-size:16px;"}
|
|
-if c == 5
|
|
%span.green
|
|
=ic :flag
|
|
|
|
-else
|
|
%span.orange
|
|
=ic :flag
|
|
|
|
=c
|
|
-if c > 1
|
|
primes obtenues sur 5 pour 2020
|
|
-else
|
|
prime obtenue sur 5 pour 2020
|
|
|
|
-if current_p_customer.m_odr_primes.count > 0
|
|
%table.table
|
|
=render current_p_customer.m_odr_primes
|
|
|
|
-else
|
|
.empty
|
|
Pour obtenir des primes déposez vos factures d'achat et de roulage
|
|
|
|
|
|
.doc_pannel
|
|
|
|
%h3 Mes factures de pneus
|
|
-if m_odr_files = current_p_customer.m_odr_files.where(:m_odr_file_type_id => 2) and m_odr_files.count > 0
|
|
%table.table
|
|
=render m_odr_files
|
|
|
|
-else
|
|
.empty
|
|
Vous n'avez pas encore déposé de facture d'achat
|
|
|
|
.align_center
|
|
= link_to 'Envoyer une facture de pneus', new_public_m_odr_file_path(:m_odr_file_type_id => 2), :class => "new_btn"
|
|
%br
|
|
%br
|
|
%h3 Mes factures de roulage
|
|
-if m_odr_files = current_p_customer.m_odr_files.where(:m_odr_file_type_id => 1) and m_odr_files.count > 0
|
|
%table.table
|
|
=render m_odr_files
|
|
-else
|
|
.empty
|
|
Vous n'avez pas encore déposé de facture de roulage
|
|
|
|
.align_center
|
|
= link_to 'Envoyer une facture de roulage', new_public_m_odr_file_path(:m_odr_file_type_id => 1), :class => "new_btn"
|
|
|
|
%br
|
|
%br
|
|
%br
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%br.clr/
|