Display action renseigner un siret when not gestionnaire logged and dossier in states draft, replied, initiated

This commit is contained in:
JC 2016-12-28 12:06:37 +01:00
parent 6dd4736f9d
commit 9e88a0d889

View file

@ -56,9 +56,10 @@
%div.col-lg-8.col-md-8.col-sm-8.col-xs-8.title-no-expanse
%div.carret-right
INFORMATIONS ENTREPRISE / ASSOCIATION
%a#add_siret.action{href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id)}
%div.col-lg-4.col-md-4.col-sm-4.col-xs-4.action
= "Renseigner un SIRET"
- if !@current_gestionnaire && ["draft", "replied", "initiated"].include?(@facade.dossier.state)
%a#add_siret.action{href: users_dossier_add_siret_path(dossier_id: @facade.dossier.id)}
%div.col-lg-4.col-md-4.col-sm-4.col-xs-4.action
= "Renseigner un SIRET"
- unless @facade.entreprise.nil?
.default_data_block