Loading config/module.config.php +5 −0 Changes for config/module.config.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -81,4 +81,9 @@ return [ 'factories' => [ ], ], 'public_files' => [ 'stylesheets' => [ '10000_etat' => 'css/unicaen-etat.css', ], ], ]; No newline at end of file public/css/unicaen-etat.css 0 → 100755 +22 −0 Changes for public/css/unicaen-etat.css: 22 added lines, 0 removed lines. Original line number Diff line number Diff line .etat-leftpart { color:white; position:relative; left:0; /*top: -1px;*/ width:2rem; display: inline-block; text-align: center; border-radius: 0.25rem 0 0 0.25rem; height: 1.2rem; } .etat-rightpart { position:relative; left:-0.35rem; width:2rem; color:white; display: inline-block; text-align: center; border-radius: 0 0.25rem 0.25rem 0; height: 1.2rem; } No newline at end of file src/UnicaenEtat/Entity/Db/EtatInstance.php +2 −2 Changes for src/UnicaenEtat/Entity/Db/EtatInstance.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -2,8 +2,8 @@ namespace UnicaenEtat\Entity\Db; use UnicaenUtilisateur\Entity\HistoriqueAwareInterface; use UnicaenUtilisateur\Entity\HistoriqueAwareTrait; use UnicaenUtilisateur\Entity\Db\HistoriqueAwareInterface; use UnicaenUtilisateur\Entity\Db\HistoriqueAwareTrait; class EtatInstance implements HistoriqueAwareInterface { use HistoriqueAwareTrait; Loading src/UnicaenEtat/View/Helper/partial/etat-type.phtml +13 −62 Changes for src/UnicaenEtat/View/Helper/partial/etat-type.phtml: 13 added lines, 62 removed lines. Original line number Diff line number Diff line <?php use UnicaenEtat\Entity\Db\EtatType; use UnicaenEtat\Entity\Db\Etat; /** * @var EtatType $type * @var array $options */ ?> $type_couleur = ($type)?$type->getCouleur():null; $type_icone = ($type)?$type->getIcone():null; $type_libelle = ($type)?$type->getLibelle():null; <?php if ($type === null) : ?> <div class="label leftpart" title="État inconnu"> <i class="fa fa-question-circle" aria-hidden="true"></i> </div> <div class="label rightpart" title="Type inconnu"> <i class="fa fa-question-circle" aria-hidden="true"></i> </div> $categorie_couleur = ($type AND $type->getCategorie())?$type->getCategorie()->getCouleur():null; $categorie_icone = ($type AND $type->getCategorie())?$type->getCategorie()->getIcone():null; $categorie_libelle = ($type AND $type->getCategorie())?$type->getCategorie()->getLibelle():null; ?> <style> .leftpart { background: #8e7c7c; position:relative; left:0.5rem; width:2.5rem; display: inline-block; } .rightpart { position:relative; left:-0.25rem; background: linear-gradient(90deg, transparent 2px, #7f8e7c 0); width:2.5rem; display: inline-block; } </style> <?php else : ?> <?php if ($type->getCategorie() !== null) : ?> <div class="label leftpart<?php echo $type->getId(); ?>" title="<?php echo $type->getLibelle(); ?>"> <i class="<?php echo ($type->getIcone())?:"fa fa-question-circle"; ?>" aria-hidden="true"></i> <div style="display: inline-block;"> <div class="etat-leftpart" title="<?php echo str_replace("'", "", $type_libelle); ?>" style="background: <?php echo $type_couleur; ?>;"> <span class="<?php echo ($type_icone)?:"fa fa-question-circle"; ?>" aria-hidden="true"></span> </div> <div class="label rightpart<?php echo $type->getCategorie()->getId(); ?>" title="<?php echo $type->getCategorie()->getLibelle(); ?>"> <i class="<?php echo ($type->getCategorie()->getIcone())?:"fa fa-question-circle"; ?>" aria-hidden="true"></i> <div class="etat-rightpart" title="<?php echo $categorie_libelle; ?>" style="background: <?php echo $categorie_couleur; ?>;"> <span class="<?php echo ($categorie_icone)?:"fa fa-question-circle"; ?>" aria-hidden="true"></span> </div> <?php else : ?> <div class="label single" title="<?php echo $type->getLibelle(); ?>"> <i class="<?php echo ($type->getIcone())?:"fa fa-question-circle"; ?>" aria-hidden="true"></i> </div> No newline at end of file <?php endif; ?> <style> .single { position:relative; left:0.5rem; width: 4.75rem; display: inline-block; background: <?php echo ($type->getCouleur())?:"#8e7c7c"; ?>; } <?php if ($type->getCategorie()) : ?> .leftpart<?php echo $type->getId(); ?> { background: <?php echo ($type->getCouleur())?:"#8e7c7c"; ?>; position:relative; left:0.5rem; width:2.5rem; display: inline-block; } .rightpart<?php echo $type->getCategorie()->getId(); ?> { position:relative; left:-0.25rem; background: linear-gradient(90deg, transparent 2px, <?php echo ($type->getCategorie()->getCouleur())?:"#7f8e7c"; ?> 0); width:2.5rem; display: inline-block; } <?php endif; ?> </style> <?php endif; ?> No newline at end of file Loading
config/module.config.php +5 −0 Changes for config/module.config.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -81,4 +81,9 @@ return [ 'factories' => [ ], ], 'public_files' => [ 'stylesheets' => [ '10000_etat' => 'css/unicaen-etat.css', ], ], ]; No newline at end of file
public/css/unicaen-etat.css 0 → 100755 +22 −0 Changes for public/css/unicaen-etat.css: 22 added lines, 0 removed lines. Original line number Diff line number Diff line .etat-leftpart { color:white; position:relative; left:0; /*top: -1px;*/ width:2rem; display: inline-block; text-align: center; border-radius: 0.25rem 0 0 0.25rem; height: 1.2rem; } .etat-rightpart { position:relative; left:-0.35rem; width:2rem; color:white; display: inline-block; text-align: center; border-radius: 0 0.25rem 0.25rem 0; height: 1.2rem; } No newline at end of file
src/UnicaenEtat/Entity/Db/EtatInstance.php +2 −2 Changes for src/UnicaenEtat/Entity/Db/EtatInstance.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -2,8 +2,8 @@ namespace UnicaenEtat\Entity\Db; use UnicaenUtilisateur\Entity\HistoriqueAwareInterface; use UnicaenUtilisateur\Entity\HistoriqueAwareTrait; use UnicaenUtilisateur\Entity\Db\HistoriqueAwareInterface; use UnicaenUtilisateur\Entity\Db\HistoriqueAwareTrait; class EtatInstance implements HistoriqueAwareInterface { use HistoriqueAwareTrait; Loading
src/UnicaenEtat/View/Helper/partial/etat-type.phtml +13 −62 Changes for src/UnicaenEtat/View/Helper/partial/etat-type.phtml: 13 added lines, 62 removed lines. Original line number Diff line number Diff line <?php use UnicaenEtat\Entity\Db\EtatType; use UnicaenEtat\Entity\Db\Etat; /** * @var EtatType $type * @var array $options */ ?> $type_couleur = ($type)?$type->getCouleur():null; $type_icone = ($type)?$type->getIcone():null; $type_libelle = ($type)?$type->getLibelle():null; <?php if ($type === null) : ?> <div class="label leftpart" title="État inconnu"> <i class="fa fa-question-circle" aria-hidden="true"></i> </div> <div class="label rightpart" title="Type inconnu"> <i class="fa fa-question-circle" aria-hidden="true"></i> </div> $categorie_couleur = ($type AND $type->getCategorie())?$type->getCategorie()->getCouleur():null; $categorie_icone = ($type AND $type->getCategorie())?$type->getCategorie()->getIcone():null; $categorie_libelle = ($type AND $type->getCategorie())?$type->getCategorie()->getLibelle():null; ?> <style> .leftpart { background: #8e7c7c; position:relative; left:0.5rem; width:2.5rem; display: inline-block; } .rightpart { position:relative; left:-0.25rem; background: linear-gradient(90deg, transparent 2px, #7f8e7c 0); width:2.5rem; display: inline-block; } </style> <?php else : ?> <?php if ($type->getCategorie() !== null) : ?> <div class="label leftpart<?php echo $type->getId(); ?>" title="<?php echo $type->getLibelle(); ?>"> <i class="<?php echo ($type->getIcone())?:"fa fa-question-circle"; ?>" aria-hidden="true"></i> <div style="display: inline-block;"> <div class="etat-leftpart" title="<?php echo str_replace("'", "", $type_libelle); ?>" style="background: <?php echo $type_couleur; ?>;"> <span class="<?php echo ($type_icone)?:"fa fa-question-circle"; ?>" aria-hidden="true"></span> </div> <div class="label rightpart<?php echo $type->getCategorie()->getId(); ?>" title="<?php echo $type->getCategorie()->getLibelle(); ?>"> <i class="<?php echo ($type->getCategorie()->getIcone())?:"fa fa-question-circle"; ?>" aria-hidden="true"></i> <div class="etat-rightpart" title="<?php echo $categorie_libelle; ?>" style="background: <?php echo $categorie_couleur; ?>;"> <span class="<?php echo ($categorie_icone)?:"fa fa-question-circle"; ?>" aria-hidden="true"></span> </div> <?php else : ?> <div class="label single" title="<?php echo $type->getLibelle(); ?>"> <i class="<?php echo ($type->getIcone())?:"fa fa-question-circle"; ?>" aria-hidden="true"></i> </div> No newline at end of file <?php endif; ?> <style> .single { position:relative; left:0.5rem; width: 4.75rem; display: inline-block; background: <?php echo ($type->getCouleur())?:"#8e7c7c"; ?>; } <?php if ($type->getCategorie()) : ?> .leftpart<?php echo $type->getId(); ?> { background: <?php echo ($type->getCouleur())?:"#8e7c7c"; ?>; position:relative; left:0.5rem; width:2.5rem; display: inline-block; } .rightpart<?php echo $type->getCategorie()->getId(); ?> { position:relative; left:-0.25rem; background: linear-gradient(90deg, transparent 2px, <?php echo ($type->getCategorie()->getCouleur())?:"#7f8e7c"; ?> 0); width:2.5rem; display: inline-block; } <?php endif; ?> </style> <?php endif; ?> No newline at end of file