diff --git a/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php b/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php
index a38819efbd3200539df1172b3761f67ae184ea39..554d9d82f7600b95417b5c765f1057553a433daf 100644
--- a/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php
+++ b/module/Application/src/Application/View/Helper/Intervenant/IntervenantViewHelper.php
@@ -2,7 +2,9 @@
namespace Application\View\Helper\Intervenant;
+use Application\Constants;
use Application\Util;
+use UnicaenImport\Entity\Db\Source;
use Zend\View\Helper\AbstractHtmlElement;
use Application\Entity\Db\Intervenant;
use Application\Entity\Db\Traits\IntervenantAwareTrait;
@@ -95,6 +97,16 @@ class IntervenantViewHelper extends AbstractHtmlElement
$html .= "</dl>";
}
+ if ($entity->getHistoDestruction()) {
+ $msg = 'Cet intervenant a été supprimé de OSE le '.$entity->getHistoDestruction()->format(Constants::DATE_FORMAT).'.';
+
+ if ($entity->getSource()->getCode() !== \Application\Service\Source::CODE_SOURCE_OSE){
+ $msg .= ' Sa fiche ne remonte plus depuis l\'application '.$entity->getSource().'.';
+ }
+
+ $html .= '<div class="alert alert-danger">'.$msg.'</div>';
+ }
+
//$html .= $this->getView()->historique($entity); => pas de sens ici
return $html;