Commit 4fc8ec4e authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

In progress note par intervenant

parent cfdd6213
Loading
Loading
Loading
Loading
+1
Changes for data/ddl/sequence.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -135,6 +135,7 @@ return [
    'TYPE_MODULATEUR_EP_ID_SEQ',
    'TYPE_MODULATEUR_ID_SEQ',
    'TYPE_MODULATEUR_STRUCTU_ID_SEQ',
    'TYPE_NOTE_ID_SEQ',
    'TYPE_PIECE_JOINTE_ID_SEQ',
    'TYPE_PIECE_JOINTE_STATU_ID_SEQ',
    'TYPE_RESSOURCE_ID_SEQ',
+124
Changes for data/ddl/table/TYPE_NOTE.php: 124 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

//@formatter:off

return [
    'name'        => 'TYPE_NOTE',
    'temporary'   => FALSE,
    'logging'     => TRUE,
    'commentaire' => NULL,
    'sequence'    => 'TYPE_NOTE_ID_SEQ',
    'columns'     => [
        'ID'                     => [
            'name'        => 'ID',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 1,
            'commentaire' => NULL,
        ],
        'LIBELLE'     => [
            'name'        => 'LIBELLE',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 200,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 2,
            'commentaire' => NULL,
        ],
        'CODE' => [
            'name'        => 'CODE',
            'type'        => 'string',
            'bdd-type'    => 'VARCHAR2',
            'length'      => 25,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 3,
            'commentaire' => NULL,
        ],
        'HISTO_CREATEUR_ID'        => [
            'name'        => 'HISTO_CREATEUR_ID',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 54,
            'commentaire' => NULL,
        ],
        'HISTO_CREATION'           => [
            'name'        => 'HISTO_CREATION',
            'type'        => 'date',
            'bdd-type'    => 'DATE',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => 'SYSDATE',
            'position'    => 53,
            'commentaire' => NULL,
        ],
        'HISTO_DESTRUCTEUR_ID'     => [
            'name'        => 'HISTO_DESTRUCTEUR_ID',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 58,
            'commentaire' => NULL,
        ],
        'HISTO_DESTRUCTION'        => [
            'name'        => 'HISTO_DESTRUCTION',
            'type'        => 'date',
            'bdd-type'    => 'DATE',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => NULL,
            'position'    => 57,
            'commentaire' => NULL,
        ],
        'HISTO_MODIFICATEUR_ID'    => [
            'name'        => 'HISTO_MODIFICATEUR_ID',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => '0',
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'position'    => 56,
            'commentaire' => NULL,
        ],
        'HISTO_MODIFICATION'       => [
            'name'        => 'HISTO_MODIFICATION',
            'type'        => 'date',
            'bdd-type'    => 'DATE',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => 'SYSDATE',
            'position'    => 55,
            'commentaire' => NULL,
        ],

    ],
];

//@formatter:on
+2
Changes for data/privileges.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -55,6 +55,8 @@ return [
            'autres-visualisation'     => 'Champs autres (Visualisation)',
            'autres-edition'           => 'Champs autres (Edition)',
            'lien-systeme-information' => 'Afficher le lien vers le système d\'information dans la fiche',
            'note-visualisation'       => 'Notes (Visualisation)',
            'note-edition'             => 'Notes (Édition)',
        ],
    ],

+2
Changes for module/Application/src/Provider/Privilege/Privileges.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -143,6 +143,8 @@ class Privileges extends \UnicaenAuth\Provider\Privilege\Privileges
    const INTERVENANT_RECHERCHE                               = 'intervenant-recherche';
    const INTERVENANT_STATUT_EDITION                          = 'intervenant-statut-edition';
    const INTERVENANT_STATUT_VISUALISATION                    = 'intervenant-statut-visualisation';
    const INTERVENANT_NOTE_EDITION                            = 'intervenant-note-edition';
    const INTERVENANT_NOTE_VISUALISATION                      = 'intervenant-note-visualisation';
    const INTERVENANT_SUPPRESSION                             = 'intervenant-suppression';
    const INTERVENANT_VISUALISATION_HISTORISES                = 'intervenant-visualisation-historises';
    const MISE_EN_PAIEMENT_DEMANDE                            = 'mise-en-paiement-demande';
+9
Changes for module/Application/view/application/intervenant/voir.phtml: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -64,4 +64,13 @@ if ($this->isAllowed(Privileges::getResourceId(Privileges::PLAFONDS_DEROGATIONS_
    ];
}

if ($this->isAllowed(Privileges::getResourceId(Privileges::INTERVENANT_NOTE_VISUALISATION))) {
    $tabs[] = [
        'id'            => 'notes',
        'label'         => '<span class="glyphicon glyphicon-book"></span> Notes',
        'url'           => $this->url('note', ['intervenant' => $intervenant->getId()]),
        'force-refresh' => true,
    ];
}

echo $this->tabajax($tabs, $tab);
 No newline at end of file
Loading