Added condition to show renseigner un siret action in dossiers#show

This commit is contained in:
JC 2016-12-06 14:41:50 +01:00
parent 7058fde758
commit e367cba480
4 changed files with 29 additions and 6 deletions

View file

@ -35,13 +35,18 @@
color: #FFFFFF; color: #FFFFFF;
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
.title, .action, .count { .title, .title-no-expanse, .action, .count {
cursor: pointer;
height: 100%; height: 100%;
line-height: 40px; line-height: 40px;
padding: 0px; padding: 0px;
text-transform: uppercase; text-transform: uppercase;
} }
.title-no-expanse {
cursor: not-allowed;
}
.title, .action, .count {
cursor: pointer;
}
.action { .action {
background-color: #E45B51; background-color: #E45B51;
text-align: center; text-align: center;

View file

@ -48,6 +48,17 @@
%div.new-action %div.new-action
ENVOYER UN MESSAGE ENVOYER UN MESSAGE
- if @facade.procedure.individual_with_siret
.default_data_block
%div.row.show-block#infos
%div.header
%div.col-lg-8.col-md-8.title-no-expanse
%div.carret-right
INFORMATIONS ENTREPRISE / ASSOCIATION
%div.col-lg-4.col-md-4.action
%a#add_siret.action{href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id)}
= "Renseigner un SIRET"
- unless @facade.entreprise.nil? - unless @facade.entreprise.nil?
.default_data_block .default_data_block
%div.row.show-block#infos %div.row.show-block#infos

View file

@ -9,7 +9,3 @@
Modifier les documents Modifier les documents
%br %br
= render partial: 'users/recapitulatif/modal_upload_pj' = 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"

View file

@ -48,6 +48,17 @@
%div.new-action %div.new-action
ENVOYER UN MESSAGE ENVOYER UN MESSAGE
- if @facade.procedure.individual_with_siret
.default_data_block
%div.row.show-block#infos
%div.header
%div.col-lg-8.col-md-8.title-no-expanse
%div.carret-right
INFORMATIONS ENTREPRISE / ASSOCIATION
%div.col-lg-4.col-md-4.action
%a#add_siret.action{href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id)}
= "Renseigner un SIRET"
- unless @facade.entreprise.nil? - unless @facade.entreprise.nil?
.default_data_block .default_data_block
%div.row.show-block#infos %div.row.show-block#infos