diff --git a/CHANGELOG.md b/CHANGELOG.md index 38d5647ad8e188a56ea3a9dd6e9aa35ca80e5465..f122c5093d1ae9d8e7905eef343dc1e8ec27bdb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ CHANGELOG ========= +## [1.7.9] - 2020-01-06 +### Changement +- Ajout des liens pour accéder à la vue de consultation depuis la vue la liste d'un sous-traitant et d'une violation + + +## [1.7.8] - 2020-09-30 +### Changement +- Correction sur le dashboard utilisateur et correction des placeholders sur la liste des collectivités. + ## [1.7.7] - 2020-09-21 ### Ajout - Ajout du Lot 4 diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index 0235b81945f412fb7e7e35e0a5740bf3d329d748..b68cd11dd4ebf17d0e5ffcf7c6e16a33b6df683a 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -1,5 +1,5 @@ parameters: - app.version: 1.7.7 + app.version: 1.7.9 framework: secret: '%env(APP_SECRET)%' diff --git a/src/Domain/Registry/Controller/ContractorController.php b/src/Domain/Registry/Controller/ContractorController.php index 38d94a88e3122eaa4dd46a46e61f85ab1d12ee78..6a5583e361fe0d7eef9b2c5ef53c636889a34b21 100644 --- a/src/Domain/Registry/Controller/ContractorController.php +++ b/src/Domain/Registry/Controller/ContractorController.php @@ -209,8 +209,12 @@ class ContractorController extends CRUDController /** @var Model\Contractor $contractor */ foreach ($contractors as $contractor) { + $contractorLink = '<a href="' . $this->router->generate('registry_contractor_show', ['id' => $contractor->getId()->toString()]) . '"> + ' . $contractor->getName() . ' + </a>'; + $reponse['data'][] = [ - 'nom' => $contractor->getName(), + 'nom' => $contractorLink, 'collectivite' => $contractor->getCollectivity()->getName(), 'clauses_contractuelles' => $contractor->isContractualClausesVerified() ? $yes : $no, 'element_securite' => $contractor->isAdoptedSecurityFeatures() ? $yes : $no, diff --git a/src/Domain/Registry/Controller/ViolationController.php b/src/Domain/Registry/Controller/ViolationController.php index d5f67f5050f945d20b201f42e94a12382974e708..69527e590b2576647db772c9263211298699fbc4 100644 --- a/src/Domain/Registry/Controller/ViolationController.php +++ b/src/Domain/Registry/Controller/ViolationController.php @@ -170,9 +170,13 @@ class ViolationController extends CRUDController /** @var Model\Violation $violation */ foreach ($users as $violation) { + $violationLink = '<a href="' . $this->router->generate('registry_violation_show', ['id' => $violation->getId()->toString()]) . '"> + ' . \date_format($violation->getDate(), 'd/m/Y') . ' + </a>'; + $reponse['data'][] = [ 'collectivite' => $violation->getCollectivity()->getName(), - 'date' => \date_format($violation->getDate(), 'd/m/Y'), + 'date' => $violationLink, 'nature' => !\is_null($violation->getViolationNature()) ? ViolationNatureDictionary::getNatures()[$violation->getViolationNature()] : null, 'cause' => !\is_null($violation->getCause()) ? ViolationCauseDictionary::getNatures()[$violation->getCause()] : null, 'gravity' => !\is_null($violation->getGravity()) ? ViolationGravityDictionary::getGravities()[$violation->getGravity()] : null,