Commit 1b5ff9d3 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Mise en évidence des relations parent/fille dans le tableau

parent 1d097333
......@@ -37,8 +37,8 @@ class FonctionReferentielSaisieForm extends AbstractForm
$this->add([
'name' => 'parent',
'options' => [
'label' => 'Fonction parente',
'empty_option' => "Pas de fonction parente",
'label' => 'Type de fonction',
'empty_option' => "Pas de type de fonction",
'value_options' => Util::collectionAsOptions($this->getFonctionsReferentiellesParentes()),
],
'attributes' => [
......
......@@ -13,7 +13,7 @@ $canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::REFERENTIEL_AD
?>
<h1 class="page-header">Référentiel fonctions</h1>
<table class="table table-bordered table-sort">
<table class="table table-bordered table-sort" data-sort="false">
<thead>
<th>Code</th>
<th>Libelle</th>
......@@ -28,7 +28,7 @@ $canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::REFERENTIEL_AD
<tbody>
<?php foreach ($fonctionsReferentiels as $fr): ?>
<tr>
<td><?= $fr->getCode() ?>
<td data-order="<?= ($fr->getParent() ? $fr->getParent()->getCode().'.' : '').$fr->getCode() ?>" style="<?= $fr->getParent() ? 'padding-left: 5em' : '' ?>"><?= $fr->getCode() ?>
</td>
<td><?= $fr->getLibelleLong() ?></td>
<td><?= $fr->getLibelleCourt() ?></td>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment