Skip to content
Snippets Groups Projects
Commit 9a3f455c authored by lecluse's avatar lecluse
Browse files

Affichage d'un message si l'intervenant a été supprimé

parent 7d119498
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment