Having editer action for construct dossier, now need the carto default_block to be shown

This commit is contained in:
JC 2016-12-06 13:06:34 +01:00
parent 02f913afdf
commit 41ebb648ef
5 changed files with 10 additions and 5 deletions

View file

@ -45,8 +45,7 @@
.action { .action {
background-color: #E45B51; background-color: #E45B51;
text-align: center; text-align: center;
float: right; line-height: 40px;
line-height: 20px;
font-size: 15px; font-size: 15px;
text-decoration: none; text-decoration: none;
color: #FFFFFF; color: #FFFFFF;

View file

@ -66,6 +66,6 @@
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
CONSTRUCTION DU DOSSIER CONSTRUCTION DU DOSSIER
= render partial: '/dossiers/actions' = render partial: '/dossiers/edit_dossier'
%div.body %div.body
= render partial: '/dossiers/infos_dossier' = render partial: '/dossiers/infos_dossier'

View file

@ -17,4 +17,4 @@
%a#maj_carte.btn.btn-primary{href: "/users/dossiers/#{@facade.dossier.id}/carte"} %a#maj_carte.btn.btn-primary{href: "/users/dossiers/#{@facade.dossier.id}/carte"}
= 'Modifier la carte' = 'Modifier la carte'
%a#maj_infos.action{href: "/users/dossiers/#{@facade.dossier.id}/description"} %a#maj_infos.action{href: "/users/dossiers/#{@facade.dossier.id}/description"}
= 'Modifier le dossier' = "éditer".upcase

View file

@ -0,0 +1,5 @@
- unless @facade.dossier.read_only?
- if user_signed_in? && (@facade.dossier.owner?(current_user.email) || @facade.dossier.invite_by_user?(current_user.email))
%div.col-lg-2.col-md-2.action
%a#maj_infos.action{href: "/users/dossiers/#{@facade.dossier.id}/description"}
= "éditer".upcase

View file

@ -66,6 +66,7 @@
%div.carret-right %div.carret-right
%div.carret-down %div.carret-down
CONSTRUCTION DU DOSSIER CONSTRUCTION DU DOSSIER
= render partial: '/dossiers/actions' = render partial: '/dossiers/edit_dossier'
%div.body %div.body
= render partial: '/dossiers/infos_dossier' = render partial: '/dossiers/infos_dossier'
= render partial: '/dossiers/actions'