use backoffice-header in views

This commit is contained in:
Mathieu Magnin 2017-07-18 15:12:55 +02:00
parent c0eeec82c4
commit 9aac9ba7cd
3 changed files with 62 additions and 70 deletions

View file

@ -3,14 +3,6 @@
@import "constants"; @import "constants";
#procedure-show { #procedure-show {
.header {
background-color: $light-grey;
padding-top: $default-padding;
.container {
display: flex;
}
.procedure-logo { .procedure-logo {
margin-right: $default-padding; margin-right: $default-padding;
} }
@ -71,7 +63,6 @@
} }
} }
} }
}
.dossiers-table { .dossiers-table {
margin: (2 * $default-padding) auto; margin: (2 * $default-padding) auto;

View file

@ -1,7 +1,8 @@
.container .backoffice-header
.container
%ul.tabs %ul.tabs
%li %li
= link_to "Demande", "#", class: ("selected" if request.path == dossier_path(dossier.procedure, dossier)) = link_to "Demande", "#", class: ("selected" if current_page?(dossier_path(dossier.procedure, dossier)))
%li %li
= link_to "Instruction", "#" = link_to "Instruction", "#"
%li %li

View file

@ -1,6 +1,6 @@
#procedure-show #procedure-show
.header .backoffice-header
.container .container.flex
- if @procedure.logo.present? - if @procedure.logo.present?
= image_tag @procedure.logo, height: 40, class: 'procedure-logo' = image_tag @procedure.logo, height: 40, class: 'procedure-logo'