#3696 Redesign du menu de choix de rôle dans l’interface administrateur

This commit is contained in:
Frederic Merizen 2019-03-28 14:11:05 +01:00 committed by GitHub
commit 6c80a574ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 28 deletions

View file

@ -1,6 +1,16 @@
#switch-menu { #switch-menu {
position: fixed; position: fixed;
left: 10px;
bottom: 10px; bottom: 10px;
z-index: 300; color: #FFFFFF;
list-style: none;
text-decoration: none;
padding-left: 20px;
}
#switch-menu a,
#switch-menu a:link,
#switch-menu a:visited,
#switch-menu a:hover {
text-decoration: none;
color: #FFFFFF;
} }

View file

@ -1,25 +1,14 @@
- if SwitchDeviseProfileService.new(warden).multiple_devise_profile_connect? - if SwitchDeviseProfileService.new(warden).multiple_devise_profile_connect?
#switch-menu.dropdown.dropup %ul#switch-menu
%button.btn.btn-default.dropdown-toggle{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false } %li
%i.fa.fa-toggle-on Changer de rôle
%span.caret - if user_signed_in?
%ul.dropdown-menu.dropdown-menu-left %li
- if user_signed_in? = link_to(dossiers_path, id: :menu_item_procedure, title: 'Aller dans votre espace usager. Vous pourrez revenir ici ensuite') do
%li %i.fa.fa-users
= link_to(dossiers_path, id: :menu_item_procedure) do   Usager
%i.fa.fa-user - if gestionnaire_signed_in?
  %li
Usager = link_to(gestionnaire_procedures_path, title: 'Aller dans votre espace instructeur. Vous pourrez revenir ici ensuite.') do
- if gestionnaire_signed_in? %i.fa.fa-user
%li   Instructeur
= link_to(gestionnaire_procedures_path) do
%i.fa.fa-user
 
Instructeur
- if administrateur_signed_in?
%li
= link_to(admin_procedures_path) do
%i.fa.fa-user
 
Administrateur

View file

@ -48,6 +48,4 @@
%h1 %h1
%i.fa.fa-times{ style: 'position: fixed; top: 10; right: 30; color: white;' } %i.fa.fa-times{ style: 'position: fixed; top: 10; right: 30; color: white;' }
= render partial: 'layouts/switch_devise_profile_module'
= render partial: 'layouts/footer', locals: { main_container_size: main_container_size } = render partial: 'layouts/footer', locals: { main_container_size: main_container_size }

View file

@ -28,6 +28,7 @@
= current_administrateur.procedures.archivees.count = current_administrateur.procedures.archivees.count
.split-hr-left .split-hr-left
= render partial: 'layouts/switch_devise_profile_module'
#infos-block #infos-block