negos_app/app/views/public/my_account/index.html.haml

61 lines
1.9 KiB
Plaintext

.center.padding
=#render :partial => "public/my_account/menu"
-if !current_customer.enabled
.alert.alert-warning
%h1 Vous devez valider votre adresse mail.
%p Vous avez du recevoir un message pour valider votre adresse mail. Tant que vous n'aurez pas cliquer sur le lien présent sur ce mail votre compte ne sera pas activé.
%p
Le mail a été envoyé à l'adresse :
%strong= current_customer.email
=link_to "renvoyer le mail de confirmation", public_reconfirm_email_path, :class => "btn btn-primary"
-if !current_customer.address or current_customer.need_1 == nil or !current_customer.account_validated
.padding.center.white
%h2
=current_customer.organisation
-if !current_customer.address
%p
Merci pour votre inscription, dernière étape et votre profil sera complet.
=render :partial => "public/my_account/step2"
-elsif !current_customer.need_1
%center
=render :partial => "public/my_account/step3"
-elsif !current_customer.account_validated
%p
Merci ! Votre profil est complet, nous vous contacterons prochainement.
%p
=link_to "Modifier mes infos", public_edit_infos_path, :class => "btn btn-primary"
-if current_customer.account_validated
.padding.center.white
%h2
=current_customer.organisation
%p
%i.fa.fa-user
#{current_customer.fullname}
%p
%i.fa.fa-map-marker
#{ current_customer.full_address}
%p
=link_to "Modifier mes infos", public_edit_infos_path, :class => "btn btn-primary"
.padding.center.white
%h3
Mes besoins
-if @needs.length > 0
=render "public/needs/index", needs: @needs
-else
%p
Vous n'avez pas encore créé de besoin
=link_to "Déclarer un besoin", new_public_need_path, :class => "btn btn-primary"
.padding.center.white
%h3
Ma liste de souhait