Loading src/UnicaenEtat/View/Helper/partial/etat-instance.phtml +18 −0 Original line number Diff line number Diff line Loading @@ -9,11 +9,14 @@ use UnicaenEtat\Entity\Db\EtatInstance; $displayDate = (isset($options['display-date']) AND $options['display-date'] === true); $displayUser = (isset($options['display-user']) AND $options['display-user'] === true); $modeInline = (isset($options['mode-inline']) AND $options['mode-inline'] === true); if ($instance !== null) $type = $instance->getType(); else $type = null; ?> <?php if ($modeInline !== true) : ?> <?php if ($displayDate OR $displayUser) : ?> <div class="row"> <div class="col-md-3"> Loading Loading @@ -43,3 +46,18 @@ else $type = null; <?php else : ?> <?php echo $this->etattype($type, $options); ?> <?php endif; ?> <?php else : ?> <!-- INLINE ---> <div class="row"> <div class="col-md-1" style="display: flex; align-items: center;"> <?php if ($type) : ?> <?php echo $this->etattype($type, ['diplay-libele' => false]); ?> <?php endif; ?> </div> <div class="col-md-9"> <?php echo $type->getLibelle(); ?> <br> Le <?php echo $instance->getHistoCreation()->format('d/m/Y à H:i'); ?> par <?php echo $instance->getHistoCreateur()->getDisplayName(); ?> </div> <?php endif; ?> Loading
src/UnicaenEtat/View/Helper/partial/etat-instance.phtml +18 −0 Original line number Diff line number Diff line Loading @@ -9,11 +9,14 @@ use UnicaenEtat\Entity\Db\EtatInstance; $displayDate = (isset($options['display-date']) AND $options['display-date'] === true); $displayUser = (isset($options['display-user']) AND $options['display-user'] === true); $modeInline = (isset($options['mode-inline']) AND $options['mode-inline'] === true); if ($instance !== null) $type = $instance->getType(); else $type = null; ?> <?php if ($modeInline !== true) : ?> <?php if ($displayDate OR $displayUser) : ?> <div class="row"> <div class="col-md-3"> Loading Loading @@ -43,3 +46,18 @@ else $type = null; <?php else : ?> <?php echo $this->etattype($type, $options); ?> <?php endif; ?> <?php else : ?> <!-- INLINE ---> <div class="row"> <div class="col-md-1" style="display: flex; align-items: center;"> <?php if ($type) : ?> <?php echo $this->etattype($type, ['diplay-libele' => false]); ?> <?php endif; ?> </div> <div class="col-md-9"> <?php echo $type->getLibelle(); ?> <br> Le <?php echo $instance->getHistoCreation()->format('d/m/Y à H:i'); ?> par <?php echo $instance->getHistoCreateur()->getDisplayName(); ?> </div> <?php endif; ?>