Having editer action for construct dossier, now need the carto default_block to be shown
This commit is contained in:
parent
02f913afdf
commit
41ebb648ef
5 changed files with 10 additions and 5 deletions
|
@ -45,8 +45,7 @@
|
|||
.action {
|
||||
background-color: #E45B51;
|
||||
text-align: center;
|
||||
float: right;
|
||||
line-height: 20px;
|
||||
line-height: 40px;
|
||||
font-size: 15px;
|
||||
text-decoration: none;
|
||||
color: #FFFFFF;
|
||||
|
|
|
@ -66,6 +66,6 @@
|
|||
%div.carret-right
|
||||
%div.carret-down
|
||||
CONSTRUCTION DU DOSSIER
|
||||
= render partial: '/dossiers/actions'
|
||||
= render partial: '/dossiers/edit_dossier'
|
||||
%div.body
|
||||
= render partial: '/dossiers/infos_dossier'
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
%a#maj_carte.btn.btn-primary{href: "/users/dossiers/#{@facade.dossier.id}/carte"}
|
||||
= 'Modifier la carte'
|
||||
%a#maj_infos.action{href: "/users/dossiers/#{@facade.dossier.id}/description"}
|
||||
= 'Modifier le dossier'
|
||||
= "éditer".upcase
|
||||
|
|
5
app/views/dossiers/_edit_dossier.html.haml
Normal file
5
app/views/dossiers/_edit_dossier.html.haml
Normal 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
|
|
@ -66,6 +66,7 @@
|
|||
%div.carret-right
|
||||
%div.carret-down
|
||||
CONSTRUCTION DU DOSSIER
|
||||
= render partial: '/dossiers/actions'
|
||||
= render partial: '/dossiers/edit_dossier'
|
||||
%div.body
|
||||
= render partial: '/dossiers/infos_dossier'
|
||||
= render partial: '/dossiers/actions'
|
||||
|
|
Loading…
Reference in a new issue