Now rework the action interface for dossiers in their show
This commit is contained in:
parent
30d5323d7e
commit
02f913afdf
7 changed files with 30 additions and 28 deletions
|
@ -46,8 +46,13 @@
|
|||
background-color: #E45B51;
|
||||
text-align: center;
|
||||
float: right;
|
||||
color: white;
|
||||
line-height: 20px;
|
||||
font-size: 15px;
|
||||
text-decoration: none;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.action:hover {
|
||||
color: #F2F6FA;
|
||||
}
|
||||
.count {
|
||||
font-size: 16px;
|
||||
|
|
|
@ -66,7 +66,6 @@
|
|||
%div.carret-right
|
||||
%div.carret-down
|
||||
CONSTRUCTION DU DOSSIER
|
||||
%div.col-lg-2.col-md-2.action
|
||||
EDITER
|
||||
= render partial: '/dossiers/actions'
|
||||
%div.body
|
||||
= render partial: '/dossiers/infos_dossier'
|
||||
|
|
20
app/views/dossiers/_actions.html.haml
Normal file
20
app/views/dossiers/_actions.html.haml
Normal file
|
@ -0,0 +1,20 @@
|
|||
%div.col-lg-2.col-md-2.action
|
||||
- unless @facade.dossier.read_only?
|
||||
- if user_signed_in? && (@facade.dossier.owner?(current_user.email) || @facade.dossier.invite_by_user?(current_user.email))
|
||||
- if @facade.procedure.cerfa_flag? || @facade.dossier.types_de_piece_justificative.size > 0
|
||||
%a#maj_pj.btn.btn-success{"data-target" => "#UploadPJmodal",
|
||||
"data-toggle" => "modal",
|
||||
:type => "button",
|
||||
style: 'margin-bottom: 15px; margin-top: -30px'}
|
||||
Modifier les documents
|
||||
%br
|
||||
= render partial: 'users/recapitulatif/modal_upload_pj'
|
||||
|
||||
- if @facade.procedure.individual_with_siret
|
||||
%a#add_siret.btn.btn-success{href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id)}
|
||||
= "Renseigner un SIRET"
|
||||
- if @facade.dossier.procedure.module_api_carto.use_api_carto
|
||||
%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'
|
|
@ -67,27 +67,6 @@
|
|||
= "var dossier_id =#{@facade.dossier.id}"
|
||||
initCarto();
|
||||
|
||||
.row{style: 'text-align:right'}
|
||||
- unless @facade.dossier.read_only?
|
||||
- if user_signed_in? && (@facade.dossier.owner?(current_user.email) || @facade.dossier.invite_by_user?(current_user.email))
|
||||
- if @facade.procedure.cerfa_flag? || @facade.dossier.types_de_piece_justificative.size > 0
|
||||
%a#maj_pj.btn.btn-success{"data-target" => "#UploadPJmodal",
|
||||
"data-toggle" => "modal",
|
||||
:type => "button",
|
||||
style: 'margin-bottom: 15px; margin-top: -30px'}
|
||||
Modifier les documents
|
||||
%br
|
||||
= render partial: 'users/recapitulatif/modal_upload_pj'
|
||||
|
||||
-if @facade.procedure.individual_with_siret
|
||||
%a#add_siret.btn.btn-success{href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id)}
|
||||
= "Renseigner un SIRET"
|
||||
-if @facade.dossier.procedure.module_api_carto.use_api_carto
|
||||
%a#maj_carte.btn.btn-primary{href: "/users/dossiers/#{@facade.dossier.id}/carte"}
|
||||
= 'Modifier la carte'
|
||||
%a#maj_infos.btn.btn-info{href: "/users/dossiers/#{@facade.dossier.id}/description"}
|
||||
= 'Modifier le dossier'
|
||||
|
||||
#modalCommentairesDossierParChamp.modal.fade{"tabindex" => -1, "role" => "dialog"}
|
||||
.modal-dialog{"role" => "document"}
|
||||
.modal-content
|
||||
|
|
|
@ -66,7 +66,6 @@
|
|||
%div.carret-right
|
||||
%div.carret-down
|
||||
CONSTRUCTION DU DOSSIER
|
||||
%div.col-lg-2.col-md-2.action
|
||||
EDITER
|
||||
= render partial: '/dossiers/actions'
|
||||
%div.body
|
||||
= render partial: '/dossiers/infos_dossier'
|
||||
|
|
Loading…
Reference in a new issue