Commit ed4ef066 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Petites corrections Tags

parent 45df47bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ return [
            'name'        => 'CODE',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 3,
            'length'      => 10,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
        <id name="id" type="integer" column="ID">
            <generator strategy="SEQUENCE"/>
        </id>
        <field name="code" type="string" column="CODE" length="3" nullable="false"/>
        <field name="code" type="string" column="CODE" length="10" nullable="false"/>
        <field name="histoCreation" type="datetime" column="HISTO_CREATION" nullable="false"/>
        <field name="histoDestruction" type="datetime" column="HISTO_DESTRUCTION" nullable="true"/>
        <field name="histoModification" type="datetime" column="HISTO_MODIFICATION" nullable="false"/>
+14 −8
Original line number Diff line number Diff line
@@ -54,6 +54,14 @@ class ReferentielsViewHelper extends AbstractViewHelper
            'visibility' => true,
            'head-text'  => "<th title=\">Commentaires éventuels\">Commentaires</th>",
        ],
        'motif-non-paiement' => [
            'visibility' => false,
            'head-text'  => "<th title=\"Nombre d'heures\">Motif de non paiement</th>",
        ],
        'tags'               => [
            'visibility' => false,
            'head-text'  => "<th>Tag</th>",
        ],
        'heures'             => [
            'visibility' => true,
            'head-text'  => "<th title=\"Nombre d'heures\">Heures</th>",
@@ -132,9 +140,7 @@ class ReferentielsViewHelper extends AbstractViewHelper
        $canEditTag = $this->getView()->isAllowed($this->getIntervenant(), Privileges::TAG_EDITION);

        $this->columns['tags']['visibility'] = ($canEditTag || $canViewTag) ? true : false;
        $this->columns['tags']['head-text'] = '<th>Tag</th>';
        $this->columns['motif-non-paiement']['visibility'] = ($canEditMNP || $canViewMNP) ? true : false;
        $this->columns['motif-non-paiement']['head-text'] = '<th>Motif de non paiement</th>';


        $attribs = [