Merge branch 'develop' into staging

This commit is contained in:
Xavier J 2017-01-02 11:25:53 +01:00
commit 6df3dcd1ee
5 changed files with 41 additions and 15 deletions

View file

@ -49,6 +49,27 @@
border: none;
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 {
#switch-buttons {
@ -126,6 +147,9 @@
font-size: 12px;
text-align: left;
}
.type-notif {
font-size: 16px;
}
}
}
.notifications {
@ -137,10 +161,8 @@
}
.type-notif {
font-size: 16px;
float: left;
float: right;
width: 30px;
height: 50px;
margin: 10px 0 0 0;
}
.notification {
margin: 10px 0 10px 10px;

View file

@ -37,4 +37,5 @@
.notification
.dossier= notification.decorate.index_display[:dossier]
.updated-at= notification.decorate.index_display[:date]
= render partial: "layouts/left_panels/type_notif_fa", locals: {notification: notification}
.type= notification.decorate.index_display[:type]

View file

@ -14,14 +14,14 @@
= 'Accuser réception'.upcase
- 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
%button.action
%button.action.close-dossier
%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
%button.action
%button.action.forget-dossier
%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
@ -37,22 +37,17 @@
- @facade.last_notifications.each do |notification|
.notification
.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)
.type-notif.fa.fa-list-alt
- if notification.liste.size > 1
.type= "Plusieurs attributs ont été changés, dont: #{notification.liste.join(" ")}"
- else
.type= "Un attribut à été changé: #{notification.liste.last}"
- elsif ['piece_justificative'].include?(notification.type_notif)
.type-notif.fa.fa-chain
- if notification.liste.size > 1
.type= "Plusieurs pièces justificatives ont été changés, dont: #{notification.liste.join(" ")}"
- else
.type= "Une pièce justificative à été changée: #{notification.liste.last}"
- 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
.split-hr

View 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

View file

@ -17,7 +17,6 @@ feature 'As a User I can send invitations from dossiers', js: true do
page.find('#invitations').click
fill_in 'invitation-email', with: 'toto@email.com'
page.find('#send-invitation .btn-success').trigger('click')
save_and_open_page
end
end