Merge branch 'develop' into staging
This commit is contained in:
commit
6df3dcd1ee
5 changed files with 41 additions and 15 deletions
|
@ -49,6 +49,27 @@
|
||||||
border: none;
|
border: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.close-dossier, .refuse-dossier, .forget-dossier {
|
||||||
|
border: 1px solid #FFFFFF;
|
||||||
|
border-radius: 25px;
|
||||||
|
margin: 5px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
width: 60px;
|
||||||
|
}
|
||||||
|
.close-dossier:hover, .refuse-dossier:hover, .forget-dossier:hover {
|
||||||
|
color: #000000;
|
||||||
|
border-color: #000000;
|
||||||
|
}
|
||||||
|
.close-dossier {
|
||||||
|
background-color: #2A9E2A;
|
||||||
|
}
|
||||||
|
.refuse-dossier {
|
||||||
|
background-color: #E4594F;
|
||||||
|
}
|
||||||
|
.forget-dossier {
|
||||||
|
background-color: #FF8300;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#menu-block {
|
#menu-block {
|
||||||
#switch-buttons {
|
#switch-buttons {
|
||||||
|
@ -126,6 +147,9 @@
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
.type-notif {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.notifications {
|
.notifications {
|
||||||
|
@ -137,10 +161,8 @@
|
||||||
}
|
}
|
||||||
.type-notif {
|
.type-notif {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
float: left;
|
float: right;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 50px;
|
|
||||||
margin: 10px 0 0 0;
|
|
||||||
}
|
}
|
||||||
.notification {
|
.notification {
|
||||||
margin: 10px 0 10px 10px;
|
margin: 10px 0 10px 10px;
|
||||||
|
|
|
@ -37,4 +37,5 @@
|
||||||
.notification
|
.notification
|
||||||
.dossier= notification.decorate.index_display[:dossier]
|
.dossier= notification.decorate.index_display[:dossier]
|
||||||
.updated-at= notification.decorate.index_display[:date]
|
.updated-at= notification.decorate.index_display[:date]
|
||||||
|
= render partial: "layouts/left_panels/type_notif_fa", locals: {notification: notification}
|
||||||
.type= notification.decorate.index_display[:type]
|
.type= notification.decorate.index_display[:type]
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
= 'Accuser réception'.upcase
|
= 'Accuser réception'.upcase
|
||||||
- elsif @facade.dossier.received?
|
- elsif @facade.dossier.received?
|
||||||
= form_tag(url_for({controller: 'backoffice/dossiers', action: :close, dossier_id: @facade.dossier.id}), class: 'form-inline action_button', method: 'POST', style: 'display:inline', 'data-toggle' => :tooltip, title: 'Accepter') do
|
= form_tag(url_for({controller: 'backoffice/dossiers', action: :close, dossier_id: @facade.dossier.id}), class: 'form-inline action_button', method: 'POST', style: 'display:inline', 'data-toggle' => :tooltip, title: 'Accepter') do
|
||||||
%button.action
|
%button.action.close-dossier
|
||||||
%i.fa.fa-check
|
%i.fa.fa-check
|
||||||
= form_tag(url_for({controller: 'backoffice/dossiers', action: :refuse, dossier_id: @facade.dossier.id}), class: 'form-inline action_button', method: 'POST', style: 'display:inline', 'data-toggle' => :tooltip, title: 'Refuser') do
|
|
||||||
%button.action
|
|
||||||
%i.fa.fa-times
|
|
||||||
= form_tag(url_for({controller: 'backoffice/dossiers', action: :without_continuation, dossier_id: @facade.dossier.id}), class: 'form-inline action_button', method: 'POST', style: 'display:inline', 'data-toggle' => :tooltip, title: 'Classer sans suite') do
|
= form_tag(url_for({controller: 'backoffice/dossiers', action: :without_continuation, dossier_id: @facade.dossier.id}), class: 'form-inline action_button', method: 'POST', style: 'display:inline', 'data-toggle' => :tooltip, title: 'Classer sans suite') do
|
||||||
%button.action
|
%button.action.forget-dossier
|
||||||
%i.fa.fa-circle-o
|
%i.fa.fa-circle-o
|
||||||
|
= form_tag(url_for({controller: 'backoffice/dossiers', action: :refuse, dossier_id: @facade.dossier.id}), class: 'form-inline action_button', method: 'POST', style: 'display:inline', 'data-toggle' => :tooltip, title: 'Refuser') do
|
||||||
|
%button.action.refuse-dossier
|
||||||
|
%i.fa.fa-times
|
||||||
|
|
||||||
%div#menu-block
|
%div#menu-block
|
||||||
|
|
||||||
|
@ -37,22 +37,17 @@
|
||||||
- @facade.last_notifications.each do |notification|
|
- @facade.last_notifications.each do |notification|
|
||||||
.notification
|
.notification
|
||||||
.updated-at= notification.updated_at.strftime('%d/%m/%Y %H:%M')
|
.updated-at= notification.updated_at.strftime('%d/%m/%Y %H:%M')
|
||||||
|
= render partial: "layouts/left_panels/type_notif_fa", locals: {notification: notification}
|
||||||
- if ['champs'].include?(notification.type_notif)
|
- if ['champs'].include?(notification.type_notif)
|
||||||
.type-notif.fa.fa-list-alt
|
|
||||||
- if notification.liste.size > 1
|
- if notification.liste.size > 1
|
||||||
.type= "Plusieurs attributs ont été changés, dont: #{notification.liste.join(" ")}"
|
.type= "Plusieurs attributs ont été changés, dont: #{notification.liste.join(" ")}"
|
||||||
- else
|
- else
|
||||||
.type= "Un attribut à été changé: #{notification.liste.last}"
|
.type= "Un attribut à été changé: #{notification.liste.last}"
|
||||||
- elsif ['piece_justificative'].include?(notification.type_notif)
|
- elsif ['piece_justificative'].include?(notification.type_notif)
|
||||||
.type-notif.fa.fa-chain
|
|
||||||
- if notification.liste.size > 1
|
- if notification.liste.size > 1
|
||||||
.type= "Plusieurs pièces justificatives ont été changés, dont: #{notification.liste.join(" ")}"
|
.type= "Plusieurs pièces justificatives ont été changés, dont: #{notification.liste.join(" ")}"
|
||||||
- else
|
- else
|
||||||
.type= "Une pièce justificative à été changée: #{notification.liste.last}"
|
.type= "Une pièce justificative à été changée: #{notification.liste.last}"
|
||||||
- else
|
- else
|
||||||
- if notification.type_notif == "commentaire"
|
|
||||||
.type-notif.fa.fa-comments-o
|
|
||||||
- elsif notification.type_notif == "submited"
|
|
||||||
.type-notif.fa.fa-thumbs-o-up
|
|
||||||
.type= notification.liste.last
|
.type= notification.liste.last
|
||||||
.split-hr
|
.split-hr
|
||||||
|
|
9
app/views/layouts/left_panels/_type_notif_fa.html.haml
Normal file
9
app/views/layouts/left_panels/_type_notif_fa.html.haml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
- case notification.type_notif
|
||||||
|
- when "commentaire"
|
||||||
|
.type-notif.fa.fa-comments-o
|
||||||
|
- when "submited"
|
||||||
|
.type-notif.fa.fa-thumbs-o-up
|
||||||
|
- when "champs"
|
||||||
|
.type-notif.fa.fa-list-alt
|
||||||
|
- when "piece_justificative"
|
||||||
|
.type-notif.fa.fa-chain
|
|
@ -17,7 +17,6 @@ feature 'As a User I can send invitations from dossiers', js: true do
|
||||||
page.find('#invitations').click
|
page.find('#invitations').click
|
||||||
fill_in 'invitation-email', with: 'toto@email.com'
|
fill_in 'invitation-email', with: 'toto@email.com'
|
||||||
page.find('#send-invitation .btn-success').trigger('click')
|
page.find('#send-invitation .btn-success').trigger('click')
|
||||||
save_and_open_page
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue