Loading src/UnicaenValidation/Entity/Db/ValidationInstance.php +1 −1 Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ class ValidationInstance implements HistoriqueAwareInterface { public function toStringJustification() : string { if ($this->getJustification() === null) return "Aucune justification associée à la validation"; if ($this->getJustification() === null || $this->getJustification()==="") return "Aucune justification associée à la validation"; return $this->getJustification(); } Loading src/UnicaenValidation/View/Helper/ValidationAfficherViewHelper.php +4 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,10 @@ class ValidationAfficherViewHelper extends AbstractHelper /** * @param ValidationInstance $validation * @param array $options * @desc Options possible : * 'afficher-code' default false : affiche le code du type de validation * 'afficher-type' default true : affiche le libellé du type de validation * 'afficher-justification' default true : affiche la justification * @return string|Partial */ public function __invoke(ValidationInstance $validation, array $options = []) Loading src/UnicaenValidation/View/Helper/partial/validation-afficher.phtml +3 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ use UnicaenValidation\Entity\Db\ValidationInstance; $type = $instance->getType(); $afficherCode = isset($options['afficher-code']) && $options['afficher-code'] === true ; $afficherType = ($options['afficher-type']) ?? true ; $afficherJustificatif = isset($options['afficher-justificatif']) && $options['afficher-justificatif'] === true ; ?> Loading @@ -20,8 +21,10 @@ $afficherJustificatif = isset($options['afficher-justificatif']) && $options['af <code><?php echo $type->getCode(); ?></code> <?php endif; ?> <?php if ($afficherCode) : ?> <strong><?php echo $type->getLibelle(); ?></strong> <br> <?php endif; ?> <?php echo $instance->toStringRefus() ?> Loading Loading
src/UnicaenValidation/Entity/Db/ValidationInstance.php +1 −1 Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ class ValidationInstance implements HistoriqueAwareInterface { public function toStringJustification() : string { if ($this->getJustification() === null) return "Aucune justification associée à la validation"; if ($this->getJustification() === null || $this->getJustification()==="") return "Aucune justification associée à la validation"; return $this->getJustification(); } Loading
src/UnicaenValidation/View/Helper/ValidationAfficherViewHelper.php +4 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,10 @@ class ValidationAfficherViewHelper extends AbstractHelper /** * @param ValidationInstance $validation * @param array $options * @desc Options possible : * 'afficher-code' default false : affiche le code du type de validation * 'afficher-type' default true : affiche le libellé du type de validation * 'afficher-justification' default true : affiche la justification * @return string|Partial */ public function __invoke(ValidationInstance $validation, array $options = []) Loading
src/UnicaenValidation/View/Helper/partial/validation-afficher.phtml +3 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ use UnicaenValidation\Entity\Db\ValidationInstance; $type = $instance->getType(); $afficherCode = isset($options['afficher-code']) && $options['afficher-code'] === true ; $afficherType = ($options['afficher-type']) ?? true ; $afficherJustificatif = isset($options['afficher-justificatif']) && $options['afficher-justificatif'] === true ; ?> Loading @@ -20,8 +21,10 @@ $afficherJustificatif = isset($options['afficher-justificatif']) && $options['af <code><?php echo $type->getCode(); ?></code> <?php endif; ?> <?php if ($afficherCode) : ?> <strong><?php echo $type->getLibelle(); ?></strong> <br> <?php endif; ?> <?php echo $instance->toStringRefus() ?> Loading