Fix admin log out navbar style
This commit is contained in:
parent
bca0292fc4
commit
d2a221ee40
8 changed files with 52 additions and 41 deletions
|
@ -1,17 +1,23 @@
|
|||
.table {
|
||||
#id {
|
||||
width: 5%;
|
||||
}
|
||||
#admin_index{
|
||||
margin-left: 2em;
|
||||
margin-right: 2em;
|
||||
|
||||
#libelle {
|
||||
width: 40%;
|
||||
}
|
||||
.table {
|
||||
#id {
|
||||
width: 5%;
|
||||
}
|
||||
|
||||
#organisation {
|
||||
width: 28%;
|
||||
}
|
||||
#libelle {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
#direction {
|
||||
width: 22%;
|
||||
#organisation {
|
||||
width: 28%;
|
||||
}
|
||||
|
||||
#direction {
|
||||
width: 22%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,27 +1 @@
|
|||
%div{ style: "decorate:none; display: flex;box-shadow:none; float:right; display: flex" }
|
||||
%div{ style: "vertical-align: middle; margin-right: 10px; margin-top: auto; margin-bottom: auto;" }
|
||||
= current_administrateur.email
|
||||
.dropdown#admin_menu
|
||||
%button.btn.btn-default.dropdown-toggle#dropdownMenuAdmin{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false}
|
||||
%i.fa.fa-cog
|
||||
%span.caret
|
||||
%ul.dropdown-menu.dropdown-menu-right
|
||||
%li
|
||||
= link_to(admin_procedures_path, id: :menu_item_procedure) do
|
||||
%i.fa.fa-list{ style: "background-size: 10px;"}
|
||||
|
||||
=t('dynamics.admin.menu.procedures')
|
||||
%li
|
||||
= link_to(admin_gestionnaires_path) do
|
||||
%i.fa.fa-user
|
||||
|
||||
=t('dynamics.admin.menu.accompagnateurs')
|
||||
%li.divider{ role: :separator}
|
||||
%li
|
||||
= link_to(admin_profile_path, id: :profile) do
|
||||
%i.fa.fa-user
|
||||
Profile
|
||||
%li
|
||||
= link_to('/administrateurs/sign_out',id: :admin_sign_out, method: :delete) do
|
||||
%i.fa.fa-power-off
|
||||
Se déconnecter
|
||||
= link_to "", '/administrateurs/sign_out', method: :delete, :class => 'btn btn-md fa fa-sign-out'
|
|
@ -0,0 +1 @@
|
|||
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'
|
|
@ -0,0 +1 @@
|
|||
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'
|
|
@ -0,0 +1 @@
|
|||
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'
|
|
@ -0,0 +1,26 @@
|
|||
%div.col-lg-8.col-md-8.main-info
|
||||
|
||||
%div.col-lg-3.col-md-3.options
|
||||
%div{ style: "decorate:none; display: flex;box-shadow:none; float:right; display: flex; margin-top: 5px" }
|
||||
%div{ style: "vertical-align: middle; margin-right: 10px; margin-top: auto; margin-bottom: auto;" }
|
||||
= current_administrateur.email
|
||||
.dropdown#admin_menu
|
||||
%button.btn.btn-default.dropdown-toggle#dropdownMenuAdmin{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false}
|
||||
%i.fa.fa-cog
|
||||
%span.caret
|
||||
%ul.dropdown-menu.dropdown-menu-right
|
||||
%li
|
||||
= link_to(admin_procedures_path, id: :menu_item_procedure) do
|
||||
%i.fa.fa-list{ style: "background-size: 10px;"}
|
||||
|
||||
=t('dynamics.admin.menu.procedures')
|
||||
%li
|
||||
= link_to(admin_gestionnaires_path) do
|
||||
%i.fa.fa-user
|
||||
|
||||
=t('dynamics.admin.menu.accompagnateurs')
|
||||
%li.divider{ role: :separator}
|
||||
%li
|
||||
= link_to(admin_profile_path, id: :profile) do
|
||||
%i.fa.fa-user
|
||||
Profile
|
|
@ -0,0 +1 @@
|
|||
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'
|
|
@ -7,7 +7,8 @@
|
|||
.col-lg-1.col-md-1#sign_out.no-padding
|
||||
= render partial: 'gestionnaires/login_banner'
|
||||
-elsif administrateur_signed_in?
|
||||
= render partial: 'administrateurs/login_banner'
|
||||
.col-lg-1.col-md-1#sign_out.no-padding
|
||||
= render partial: 'administrateurs/login_banner'
|
||||
-else
|
||||
.col-lg-1.col-md-1#sign_in
|
||||
= link_to "Connexion", '/users/sign_in', :class => 'btn btn-lg'
|
||||
|
|
Loading…
Reference in a new issue