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

98 lines
3.6 KiB
Plaintext
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.center.padding
=#render :partial => "public/my_account/menu"
-if !current_customer.account_validated?
.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 offres acceptées
%div.alert.alert-info
%p
Voici la liste de toutes les offres que vous avez acceptées.
Cest ici que vous pouvez accéder aux offres disponibles.
%p
Une fois téléchargé, vous devez nous renvoyer le mandat signé afin de pouvoir bénéficier de l'offre.
%p
%strong
Noubliez pas que cest lintérêt de chacun de contribuer à NEGOS, en participant, en communiquant afin dobtenir la meilleure offre
-if @accepted_offers.length > 0
=render "public/needs/accepted_offers_index", accepted_offers: @accepted_offers
.pagination= paginate @accepted_offers, param_name: 'page_offers'
-else
%p
Vous n'avez pas encore accepté d'offre
.padding.center.white
%h3
Mes intérêts
%div.alert.alert-info
%p
Signaler votre intérêt, vous permet daccéder au fil de discussion ainsi quau suivi propre à chaque besoin.
%p
Cela nous permet de vous envoyer des offres intéressantes si nous décidons de négocier ce besoin.
-if @wishes.length > 0
=render "public/wishes/index", wishes: @wishes
.pagination= paginate @wishes , param_name: 'page_wishes'
-else
%p
Vous n'êtes encore intéressé par aucun besoin
.padding.center.white
%h3
Mes besoins
%div.alert.alert-info
%p
Si vous avez un besoin qui ne fait pas encore parti de notre liste, vous pouvez vous-même le proposer à Négos. 
%p
Votre proposition de besoin sera alors soumise à une courte validation par l'un de nos modérateurs. 
%p
Vous serez informé par courriel de son acceptation.
-if @needs.length > 0
=render "public/needs/index", needs: @needs
.pagination= paginate @needs , param_name: 'page_needs'
-else
%p
Vous n'avez pas encore proposé de besoin
=link_to "Proposer un besoin", new_public_need_path, :class => "btn btn-primary"