Notifications are shown in backoffice dossier show, limit 5
This commit is contained in:
parent
48451553b9
commit
42915979da
4 changed files with 28 additions and 14 deletions
|
@ -64,17 +64,27 @@
|
|||
width: 200px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.tips {
|
||||
margin: 0 10px 0 5px;
|
||||
.notifications {
|
||||
margin: 20px 10px 0 5px;
|
||||
.fa {
|
||||
color: #FFFFFF;
|
||||
font-size: 40px;
|
||||
width: inherit;
|
||||
padding: 5px;
|
||||
font-size: 25px;
|
||||
width: 100%;
|
||||
margin: 0 0 15px 0;
|
||||
}
|
||||
.notification {
|
||||
margin: 10px 0 10px 0;
|
||||
.type {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.updated-at {
|
||||
color: #CCCCCC;
|
||||
font-size: 12px;
|
||||
text-align: left;
|
||||
}
|
||||
.split-hr {
|
||||
width: 40px;
|
||||
margin: auto;
|
||||
}
|
||||
.notice {
|
||||
font-size: 18px;
|
||||
display: initial;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,6 +30,10 @@
|
|||
%div.split-hr-left
|
||||
%div.dossier-state= @facade.dossier.display_state
|
||||
%div.split-hr-left
|
||||
%div.tips.hidden
|
||||
%i.fa.fa-lightbulb-o
|
||||
%div.notice= "Ceci est un bloc destiné à contenir des informations sur ce que vous êtes censé pouvoir faire à ce stade de traitement du dossier."
|
||||
%div.notifications
|
||||
%i.fa.fa-bell-o
|
||||
- @facade.dossier.notifications.limit(5).each do |notification|
|
||||
.notification
|
||||
.updated-at= notification.updated_at.strftime('%d/%m/%Y %H:%M')
|
||||
.type= notification.liste.last
|
||||
.split-hr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue