Loading public/css/unicaen-etat.css +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ .etat-solo { border-radius: 0.25rem; width:4rem; width:2.5rem; color:white; display: inline-block; text-align: center; Loading src/UnicaenEtat/View/Helper/EtatTypeViewHelper.php +1 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ class EtatTypeViewHelper extends AbstractHelper * -- OPTIONS -- * 'display-categorie' : affiche la partie catégorie | default:true; * 'display-type' : affiche la partie type | default:true; * 'display-libelle' : affiche le libelle du type | default:false; * 'unknown-icon' : icone si non définie | défault: fas fa-question; * 'unknown-color' : couleur si non définie | défault: gray; * 'unknown-type-libelle' : Libelle du type si le type n'existe pas | défault: 'Aucun état'; Loading src/UnicaenEtat/View/Helper/partial/etat-instance.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ else $type = null; <div class="row"> <div class="col-md-3"> <?php if ($type) : ?> <?php echo $this->etattype($type); ?> <?php echo $this->etattype($type, $options); ?> <?php endif; ?> </div> <div class="col-md-9"> Loading src/UnicaenEtat/View/Helper/partial/etat-type.phtml +6 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ use UnicaenEtat\Entity\Db\EtatType; $displayCategorie = (isset($options['display-categorie'])?$options['display-categorie']!==false:true); $displayType = (isset($options['display-type'])?$options['display-type']!==false:true); $displayLibelle = (isset($options['display-libelle'])?$options['display-libelle']!==true:false); $unknownIcon = (isset($options['unknown-icon'])) ? $options['unknown-icon']:'fas fa-question'; $unknownColor = (isset($options['unknown-color'])) ? $options['unknown-color']:'gray'; $unknownTypeLibelle = (isset($options['unknown-type-libelle'])) ? $options['unknown-type-libelle']:'Aucun état'; Loading @@ -23,6 +24,7 @@ $categorie_icone = ($type AND $type->getCategorie())?$type->getCategorie()->getI $categorie_libelle = ($type AND $type->getCategorie())?$type->getCategorie()->getLibelle():$unknownCategorieLibelle; ?> <div style="display:inline-block;"> <?php if ($displayType && $displayCategorie) : ?> <div style="display: inline-block;min-width: 6rem;"> <div class="etat-leftpart" title="<?php echo htmlspecialchars($type_libelle); ?>" style="background: <?php echo $type_couleur; ?>;"> Loading @@ -44,3 +46,7 @@ $categorie_libelle = ($type AND $type->getCategorie())?$type->getCategorie()->ge </div> <?php endif; ?> <?php endif; ?> <?php if ($displayLibelle) : ?> <?php echo $type_libelle; ?> <?php endif; ?> </div> No newline at end of file Loading
public/css/unicaen-etat.css +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ .etat-solo { border-radius: 0.25rem; width:4rem; width:2.5rem; color:white; display: inline-block; text-align: center; Loading
src/UnicaenEtat/View/Helper/EtatTypeViewHelper.php +1 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ class EtatTypeViewHelper extends AbstractHelper * -- OPTIONS -- * 'display-categorie' : affiche la partie catégorie | default:true; * 'display-type' : affiche la partie type | default:true; * 'display-libelle' : affiche le libelle du type | default:false; * 'unknown-icon' : icone si non définie | défault: fas fa-question; * 'unknown-color' : couleur si non définie | défault: gray; * 'unknown-type-libelle' : Libelle du type si le type n'existe pas | défault: 'Aucun état'; Loading
src/UnicaenEtat/View/Helper/partial/etat-instance.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ else $type = null; <div class="row"> <div class="col-md-3"> <?php if ($type) : ?> <?php echo $this->etattype($type); ?> <?php echo $this->etattype($type, $options); ?> <?php endif; ?> </div> <div class="col-md-9"> Loading
src/UnicaenEtat/View/Helper/partial/etat-type.phtml +6 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ use UnicaenEtat\Entity\Db\EtatType; $displayCategorie = (isset($options['display-categorie'])?$options['display-categorie']!==false:true); $displayType = (isset($options['display-type'])?$options['display-type']!==false:true); $displayLibelle = (isset($options['display-libelle'])?$options['display-libelle']!==true:false); $unknownIcon = (isset($options['unknown-icon'])) ? $options['unknown-icon']:'fas fa-question'; $unknownColor = (isset($options['unknown-color'])) ? $options['unknown-color']:'gray'; $unknownTypeLibelle = (isset($options['unknown-type-libelle'])) ? $options['unknown-type-libelle']:'Aucun état'; Loading @@ -23,6 +24,7 @@ $categorie_icone = ($type AND $type->getCategorie())?$type->getCategorie()->getI $categorie_libelle = ($type AND $type->getCategorie())?$type->getCategorie()->getLibelle():$unknownCategorieLibelle; ?> <div style="display:inline-block;"> <?php if ($displayType && $displayCategorie) : ?> <div style="display: inline-block;min-width: 6rem;"> <div class="etat-leftpart" title="<?php echo htmlspecialchars($type_libelle); ?>" style="background: <?php echo $type_couleur; ?>;"> Loading @@ -44,3 +46,7 @@ $categorie_libelle = ($type AND $type->getCategorie())?$type->getCategorie()->ge </div> <?php endif; ?> <?php endif; ?> <?php if ($displayLibelle) : ?> <?php echo $type_libelle; ?> <?php endif; ?> </div> No newline at end of file