add login for gestionnaire

This commit is contained in:
Tanguy PATTE 2015-09-22 10:15:12 +02:00
parent b3383bec9f
commit 44173a17fb
26 changed files with 313 additions and 142 deletions

View file

@ -13,10 +13,10 @@
%a{href: '/', class:'btn btn-lg'}
='TPS'
-if user_signed_in?
-if gestionnaire_signed_in?
%div{style: 'decorate:none; box-shadow:none; float:right; margin-top:8px'}
= current_user.email
= link_to "Déconnexion", '/logout', method: :delete, :class => 'btn btn-md'
= current_gestionnaire.email
= link_to "Déconnexion", '/gestionnaires/sign_out', method: :delete, :class => 'btn btn-md'
#flash_message.center
- if flash.notice