Commit 0ea7290f67fa1cb5a38b8e4419a43af5aada5df8
1 parent
3f179b66
Exists in
master
and in
3 other branches
Version: 2.5.4.2
boutons materiels à gauche (index) + mail administratif désactivé Version majeure en cours (2.5): https://projects.irap.omp.eu/versions/99 ROADMAP: https://projects.irap.omp.eu/projects/labinvent/roadmap
Showing
18 changed files
with
149 additions
and
126 deletions
Show diff stats
README-LABINVENT.md
... | ... | @@ -53,7 +53,7 @@ VERSION ACTUELLE |
53 | 53 | Date: 30/06/2016 |
54 | 54 | Version: 2.5.4.2 |
55 | 55 | |
56 | -Username inversé + boutons materiels à gauche (index) + suppression bouton détails (index suivis & emprunt + view materiels et suivis) | |
56 | +boutons materiels à gauche (index) + mail administratif désactivé | |
57 | 57 | |
58 | 58 | Version majeure en cours (2.5): https://projects.irap.omp.eu/versions/99 |
59 | 59 | ... | ... |
src/Controller/MaterielsController.php
... | ... | @@ -261,6 +261,7 @@ class MaterielsController extends AppController |
261 | 261 | |
262 | 262 | $message = $materiel->get('nom_createur').' a ajouté le matériel "'.$materiel->get('designation').'" ('.$materiel->numero_laboratoire.')'; |
263 | 263 | |
264 | + //Envoi mail responsable | |
264 | 265 | $mailsResp = TableRegistry::get('Users')->find()->select('email')->where(['role =' => 'Responsable', 'groupes_metier_id =' => $materiel->get('groupes_metier_id')])->orWhere(['role =' => 'Responsable', 'groupe_thematique_id =' => $materiel->get('groupes_thematique_id')])->toArray(); |
265 | 266 | $mails = []; |
266 | 267 | for($i = 0; $i < sizeof($mailsResp); $i++) { |
... | ... | @@ -268,7 +269,9 @@ class MaterielsController extends AppController |
268 | 269 | } |
269 | 270 | $this->sendEmailTo('Ajout d\'un matériel', $message, $mails); |
270 | 271 | |
271 | - $mailsResp = TableRegistry::get('Users')->find()->select('email')->where(['role =' => 'Administration Plus'])->orWhere(['role =' => 'Administration'])->toArray(); | |
272 | + //Envoi mail administratif | |
273 | + //$mailsResp = TableRegistry::get('Users')->find()->select('email')->where(['role =' => 'Administration Plus'])->orWhere(['role =' => 'Administration'])->toArray(); | |
274 | + $mailsResp = TableRegistry::get('Users')->find()->select('email')->where(['role =' => 'Administration Plus'])->toArray(); | |
272 | 275 | $mails = []; |
273 | 276 | for($i = 0; $i < sizeof($mailsResp); $i++) { |
274 | 277 | $mails[$i] = $mailsResp[$i]['email']; | ... | ... |
src/Template/Categories/index.ctp
... | ... | @@ -4,18 +4,16 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | + <th class="actions"><?= __('') ?></th> | |
7 | 8 | <th><?= $this->Paginator->sort('nom', 'Nom') ?></th> |
8 | 9 | <th><?= $this->Paginator->sort('sur_categorie_id', 'Domaine') ?></th> |
9 | - <th class="actions"><?= __('') ?></th> | |
10 | + | |
10 | 11 | </tr> |
11 | 12 | </thead> |
12 | 13 | <tbody> |
13 | 14 | <?php foreach ($categories as $category): ?> |
14 | 15 | <tr> |
15 | - <td class="smallText"><?= $this->Html->link($category->nom, ['action' => 'view', $category->id]) ?></td> | |
16 | - <td class="smallText"><?= $category->has('sur_category') ? $this->Html->link($category->sur_category->nom, ['controller' => 'SurCategories', 'action' => 'view', $category->sur_category->id]) : '' ?></td> | |
17 | - | |
18 | - <td class="actions" style="padding: 6px 0;"> | |
16 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
19 | 17 | <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $category->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> |
20 | 18 | |
21 | 19 | <?php if (in_array($role, ['Administration Plus', 'Super Administrateur'])) { ?> |
... | ... | @@ -26,6 +24,11 @@ |
26 | 24 | <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $category->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $category->id)]) ?> |
27 | 25 | <?php } ?> |
28 | 26 | </td> |
27 | + | |
28 | + <td class="smallText"><?= $this->Html->link($category->nom, ['action' => 'view', $category->id]) ?></td> | |
29 | + <td class="smallText"><?= $category->has('sur_category') ? $this->Html->link($category->sur_category->nom, ['controller' => 'SurCategories', 'action' => 'view', $category->sur_category->id]) : '' ?></td> | |
30 | + | |
31 | + | |
29 | 32 | |
30 | 33 | </tr> |
31 | 34 | <?php endforeach; ?> | ... | ... |
src/Template/Documents/index.ctp
... | ... | @@ -4,13 +4,14 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | + <th class="actions"><?= __('') ?></th> | |
7 | 8 | <th><?= $this->Paginator->sort('nom', 'Nom') ?></th> |
8 | 9 | <th><?= $this->Paginator->sort('materiel_id', 'Materiel') ?></th> |
9 | 10 | <th><?= $this->Paginator->sort('suivi_id', 'Suivi') ?></th> |
10 | 11 | <th><?= $this->Paginator->sort('type_document_id', 'Type') ?></th> |
11 | 12 | <th><?= $this->Paginator->sort('type_doc', 'Extension fichier') ?></th> |
12 | 13 | <th><?= $this->Paginator->sort('photo', 'Miniature') ?></th> |
13 | - <th class="actions"><?= __('') ?></th> | |
14 | + | |
14 | 15 | </tr> |
15 | 16 | </thead> |
16 | 17 | <tbody> |
... | ... | @@ -22,6 +23,19 @@ |
22 | 23 | } |
23 | 24 | ?> |
24 | 25 | <tr> |
26 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
27 | + <?php | |
28 | + if($document->photo) { | |
29 | + echo $this->Form->postLink(__('<i class="icon-download-alt"></i>'), '/webroot/img/photos/'.$document->id.'.'.$document->type_doc, ['title' => 'Télécharger', 'style' => 'margin: 0 2px', 'escape' => false ]); | |
30 | + }else { | |
31 | + echo $this->Form->postLink(__('<i class="icon-download-alt"></i>'), '/webroot/files/'.$document->id.'.'.$document->type_doc, ['title' => 'Télécharger', 'style' => 'margin: 0 2px', 'escape' => false ]); | |
32 | + } | |
33 | + ?> | |
34 | + <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['action' => 'edit', $document->id], ['title' => 'Editer', 'style' => 'margin: 0 2px', 'escape' => false]) ?> | |
35 | + | |
36 | + <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $document->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $document->id)]) ?> | |
37 | + </td> | |
38 | + | |
25 | 39 | <td class="smallText"><?= $this->Html->link($document->nom, ['action' => 'view', $document->id]) ?></td> |
26 | 40 | |
27 | 41 | <?php if(!empty($document->materiel_id)) { ?> |
... | ... | @@ -36,19 +50,7 @@ |
36 | 50 | <td class="smallText"><?= h($document->type_doc) ?></td> |
37 | 51 | <td class="smallText"><?= $p ?></td> |
38 | 52 | |
39 | - <td class="actions" style="padding: 6px 0;"> | |
40 | - <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $document->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> | |
41 | - <?php | |
42 | - if($document->photo) { | |
43 | - echo $this->Form->postLink(__('<i class="icon-download-alt"></i>'), '/webroot/img/photos/'.$document->id.'.'.$document->type_doc, ['title' => 'Télécharger', 'style' => 'margin: 0 2px', 'escape' => false ]); | |
44 | - }else { | |
45 | - echo $this->Form->postLink(__('<i class="icon-download-alt"></i>'), '/webroot/files/'.$document->id.'.'.$document->type_doc, ['title' => 'Télécharger', 'style' => 'margin: 0 2px', 'escape' => false ]); | |
46 | - } | |
47 | - ?> | |
48 | - <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['action' => 'edit', $document->id], ['title' => 'Editer', 'style' => 'margin: 0 2px', 'escape' => false]) ?> | |
49 | - | |
50 | - <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $document->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $document->id)]) ?> | |
51 | - </td> | |
53 | + | |
52 | 54 | </tr> |
53 | 55 | <?php endforeach; ?> |
54 | 56 | </tbody> | ... | ... |
src/Template/Emprunts/index.ctp
... | ... | @@ -4,6 +4,8 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | + <th class="actions"><?= __('') ?></th> | |
8 | + | |
7 | 9 | <th><?= $this->Paginator->sort('id', 'N°') ?></th> |
8 | 10 | <th><?= $this->Paginator->sort('materiel_id', 'Matériel') ?></th> |
9 | 11 | <th><?= $this->Paginator->sort('numero_laboratoire', 'N° interne (labo)') ?></th> |
... | ... | @@ -13,12 +15,19 @@ |
13 | 15 | <th><?= $this->Paginator->sort('nom_emprunteur', 'Emprunteur') ?></th> |
14 | 16 | <th><?= $this->Paginator->sort('site_id', 'Lieu stockage') ?></th> |
15 | 17 | |
16 | - <th class="actions"><?= __('') ?></th> | |
18 | + | |
17 | 19 | </tr> |
18 | 20 | </thead> |
19 | 21 | <tbody> |
20 | 22 | <?php foreach ($emprunts as $emprunt): ?> |
21 | 23 | <tr> |
24 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
25 | + <?php if(($role == 'Utilisateur' && in_array($username, [$emprunt->nom_createur, $emprunt->nom_emprunteur])) || (in_array($role, ['Responsable', 'Administration', 'Administration Plus', 'Super Administrateur']))) { ?> | |
26 | + <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['action' => 'edit', $emprunt->id], ['title' => 'Editer', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> | |
27 | + <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $emprunt->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $emprunt->id)]) ?> | |
28 | + <?php } ?> | |
29 | + </td> | |
30 | + | |
22 | 31 | <td class="smallText"><?php echo $this->Html->link('Emprunt '.$this->Number->format($emprunt->id), ['action' => 'view', $emprunt->id])?></td> |
23 | 32 | <td class="smallText"><?= $emprunt->has('materiel') ? $this->Html->link($emprunt->materiel->designation, ['controller' => 'Materiels', 'action' => 'view', $emprunt->materiel->id]) : '' ?></td> |
24 | 33 | <td class="smallText"><?= $emprunt->has('materiel') ? h($emprunt->materiel->numero_laboratoire) : '' ?></td> |
... | ... | @@ -28,12 +37,7 @@ |
28 | 37 | <td class="smallText"><?= h($emprunt->nom_emprunteur) ?></td> |
29 | 38 | <td class="smallText"><?php if (h($emprunt->emprunt_interne) == '1') { echo h($emprunt->site->nom).' - '.h($emprunt->e_lieu_detail); } else { echo h($emprunt->laboratoire); } ?></td> |
30 | 39 | |
31 | - <td class="actions" style="padding: 6px 0;"> | |
32 | - <?php if(($role == 'Utilisateur' && in_array($username, [$emprunt->nom_createur, $emprunt->nom_emprunteur])) || (in_array($role, ['Responsable', 'Administration', 'Administration Plus', 'Super Administrateur']))) { ?> | |
33 | - <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['action' => 'edit', $emprunt->id], ['title' => 'Editer', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> | |
34 | - <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $emprunt->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $emprunt->id)]) ?> | |
35 | - <?php } ?> | |
36 | - </td> | |
40 | + | |
37 | 41 | </tr> |
38 | 42 | <?php endforeach; ?> |
39 | 43 | </tbody> | ... | ... |
src/Template/GroupesMetiers/index.ctp
... | ... | @@ -4,9 +4,10 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | + <th class="actions"><?= __('') ?></th> | |
7 | 8 | <th><?= $this->Paginator->sort('nom', 'Nom') ?></th> |
8 | 9 | <th><?= $this->Paginator->sort('description', 'Description') ?></th> |
9 | - <th class="actions"><?= __('') ?></th> | |
10 | + | |
10 | 11 | </tr> |
11 | 12 | </thead> |
12 | 13 | <tbody> |
... | ... | @@ -14,10 +15,8 @@ |
14 | 15 | if($groupesMetier->nom != 'N/A') { |
15 | 16 | ?> |
16 | 17 | <tr> |
17 | - <td class="smallText"><?= $this->Html->link($groupesMetier->nom, ['action' => 'view', $groupesMetier->id]) ?></td> | |
18 | - <td class="smallText"><?= h($groupesMetier->description) ?></td> | |
19 | - | |
20 | - <td class="actions" style="padding: 6px 0;"> | |
18 | + | |
19 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
21 | 20 | <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $groupesMetier->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> |
22 | 21 | |
23 | 22 | <?php if (in_array($role, ['Administration Plus', 'Super Administrateur'])) { ?> |
... | ... | @@ -28,6 +27,10 @@ |
28 | 27 | <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $groupesMetier->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $groupesMetier->id)]) ?> |
29 | 28 | <?php } ?> |
30 | 29 | </td> |
30 | + <td class="smallText"><?= $this->Html->link($groupesMetier->nom, ['action' => 'view', $groupesMetier->id]) ?></td> | |
31 | + <td class="smallText"><?= h($groupesMetier->description) ?></td> | |
32 | + | |
33 | + | |
31 | 34 | |
32 | 35 | </tr> |
33 | 36 | <?php | ... | ... |
src/Template/GroupesThematiques/index.ctp
... | ... | @@ -4,19 +4,17 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | + <th class="actions"><?= __('') ?></th> | |
7 | 8 | <th><?= $this->Paginator->sort('nom', 'Nom') ?></th> |
8 | 9 | <th><?= $this->Paginator->sort('description', 'Description') ?></th> |
9 | - <th class="actions"><?= __('') ?></th> | |
10 | + | |
10 | 11 | </tr> |
11 | 12 | </thead> |
12 | 13 | <tbody> |
13 | 14 | <?php foreach ($groupesThematiques as $groupesThematique): |
14 | 15 | if($groupesThematique->nom != 'N/A') {?> |
15 | 16 | <tr> |
16 | - <td class="smallText"><?= $this->Html->link($groupesThematique->nom, ['action' => 'view', $groupesThematique->id]) ?></td> | |
17 | - <td class="smallText"><?= h($groupesThematique->description) ?></td> | |
18 | - | |
19 | - <td class="actions" style="padding: 6px 0;"> | |
17 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
20 | 18 | <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $groupesThematique->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> |
21 | 19 | |
22 | 20 | <?php if (in_array($role, ['Administration Plus', 'Super Administrateur'])) { ?> |
... | ... | @@ -27,7 +25,9 @@ |
27 | 25 | <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $groupesThematique->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $groupesThematique->id)]) ?> |
28 | 26 | <?php } ?> |
29 | 27 | </td> |
30 | - | |
28 | + | |
29 | + <td class="smallText"><?= $this->Html->link($groupesThematique->nom, ['action' => 'view', $groupesThematique->id]) ?></td> | |
30 | + <td class="smallText"><?= h($groupesThematique->description) ?></td> | |
31 | 31 | </tr> |
32 | 32 | <?php |
33 | 33 | } | ... | ... |
src/Template/Materiels/index.ctp
... | ... | @@ -107,10 +107,10 @@ if (isset ( $STATUS )) { |
107 | 107 | <thead> |
108 | 108 | <tr> |
109 | 109 | <?php if (isset($STATUS)) { echo '<th></th>'; }?> |
110 | - <th><?= $this->Paginator->sort('designation','Désignation') ?></th> | |
111 | 110 | <th class="actions"><?= __('') ?></th> |
112 | 111 | <th class="actions"><?= __('') ?></th> |
113 | 112 | <th class="actions"><?= __('') ?></th> |
113 | + <th><?= $this->Paginator->sort('designation','Désignation') ?></th> | |
114 | 114 | <th><?= $this->Paginator->sort('numero_laboratoire', 'N° interne (labo)') ?></th> |
115 | 115 | <th><?= $this->Paginator->sort('categorie_id', 'Catégorie') ?></th> |
116 | 116 | <th><?= $this->Paginator->sort('organisme_id', 'Org.') ?></th> |
... | ... | @@ -131,9 +131,8 @@ if (isset ( $STATUS )) { |
131 | 131 | echo '<td class="smallText">'.$this->Form->checkbox($materiel->id, ['style' => 'margin: 3px','id' => $materiel->id]).'</td>' ; |
132 | 132 | } |
133 | 133 | ?> |
134 | - <td class="smallText"><?= $materiel->has('designation') ? $this->Html->link($materiel->designation, ['controller' => 'Materiels', 'action' => 'view', $materiel->id]) : '' ?></td> | |
135 | 134 | |
136 | - <td class="actions" style="padding: 6px 0;"> | |
135 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
137 | 136 | <?php if (in_array($materiel->status, ['CREATED', 'VALIDATED'])): |
138 | 137 | if(($role == 'Utilisateur' && (in_array($username, [$materiel->nom_createur, $materiel->nom_responsable]))) || (in_array($role, ['Administration', 'Administration Plus', 'Super Administrateur'])) || ($role == 'Responsable' && ($materiel->groupes_metier_id == $userConnected->groupes_metier_id || $materiel->groupes_thematique_id == $userConnected->groupe_thematique_id))) { |
139 | 138 | ?> |
... | ... | @@ -180,7 +179,7 @@ if (isset ( $STATUS )) { |
180 | 179 | } |
181 | 180 | ?> |
182 | 181 | </td> |
183 | - | |
182 | + <td class="smallText"><?= $materiel->has('designation') ? $this->Html->link($materiel->designation, ['controller' => 'Materiels', 'action' => 'view', $materiel->id]) : '' ?></td> | |
184 | 183 | <td class="smallText"><?= h($materiel->numero_laboratoire) ?></td> |
185 | 184 | <td class="smallText"><?= $materiel->has('category') ? h($materiel->category->nom) : '' ?></td> |
186 | 185 | <td class="smallText"><?= $materiel->has('organisme') ? h($materiel->organisme->nom) : '' ?></td> | ... | ... |
src/Template/Materiels/view.ctp
... | ... | @@ -402,6 +402,7 @@ if (h ( $materiel->status ) == 'ARCHIVED') |
402 | 402 | <?php if (!empty($materiel->suivis)) { ?> |
403 | 403 | <table> |
404 | 404 | <tr> |
405 | + <th class="actions"><?= __('') ?></th> | |
405 | 406 | <th><?= __('N°') ?></th> |
406 | 407 | <th><?= __('Prestataire') ?></th> |
407 | 408 | <th><?= __('Date du contrôle') ?></th> |
... | ... | @@ -411,6 +412,15 @@ if (h ( $materiel->status ) == 'ARCHIVED') |
411 | 412 | </tr> |
412 | 413 | <?php foreach ($materiel->suivis as $suivis): ?> |
413 | 414 | <tr> |
415 | + | |
416 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
417 | + <?php | |
418 | + if(($role == 'Utilisateur' && (in_array($username, [$materiel->nom_createur, $materiel->nom_responsable]))) || (in_array($role, ['Administration', 'Administration Plus', 'Super Administrateur'])) || ($role == 'Responsable' && ($materiel->groupes_metier_id == $userConnected->groupes_metier_id || $materiel->groupes_thematique_id == $userConnected->groupe_thematique_id))) { | |
419 | + ?> | |
420 | + <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['controller' => 'Suivis', 'action' => 'edit', $suivis->id], ['escape' => false, 'style' => 'margin:0'])?> | |
421 | + <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['controller' => 'Suivis', 'action' => 'delete', $suivis->id], ['escape' => false, 'style' => 'margin:0', 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $suivis->id)])?> | |
422 | + <?php } ?> | |
423 | + </td> | |
414 | 424 | <td><?= $this->Html->link('Suivi '.$suivis->id, ['controller' => 'suivis', 'action' => 'view', $suivis->id]) ?></td> |
415 | 425 | <td><?= h($suivis->organisme) ?></td> |
416 | 426 | <td><?= h($suivis->date_controle) ?></td> |
... | ... | @@ -434,6 +444,7 @@ if (h ( $materiel->status ) == 'ARCHIVED') |
434 | 444 | <?php if (!empty($materiel->emprunts)) { ?> |
435 | 445 | <table> |
436 | 446 | <tr> |
447 | + <th class="actions"><?= __('') ?></th> | |
437 | 448 | <th><?= __('N°') ?></th> |
438 | 449 | <th><?= __('Emprunteur') ?></th> |
439 | 450 | <th><?= __('Type d\'Emprunt') ?></th> |
... | ... | @@ -455,6 +466,15 @@ foreach ( $materiel->emprunts as $emprunts ) : |
455 | 466 | } |
456 | 467 | ?> |
457 | 468 | <tr> |
469 | + | |
470 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
471 | + <?php | |
472 | + if(($role == 'Utilisateur' && (in_array($username, [$materiel->nom_createur, $materiel->nom_responsable]))) || (in_array($role, ['Administration', 'Administration Plus', 'Super Administrateur'])) || ($role == 'Responsable' && ($materiel->groupes_metier_id == $userConnected->groupes_metier_id || $materiel->groupes_thematique_id == $userConnected->groupe_thematique_id))) { | |
473 | + ?> | |
474 | + <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['controller' => 'Emprunts', 'action' => 'edit', $emprunts->id], ['escape' => false, 'style' => 'margin:0'])?> | |
475 | + <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['controller' => 'Emprunts', 'action' => 'delete', $emprunts->id], ['escape' => false, 'style' => 'margin:0', 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $emprunts->id)])?> | |
476 | + <?php } ?> | |
477 | + </td> | |
458 | 478 | <td><?= $this->Html->link('Emprunt '.$emprunts->id, ['controller' => 'emprunts', 'action' => 'view', $emprunts->id]) ?></td> |
459 | 479 | <td><?= h($emprunts->nom_emprunteur) ?></td> |
460 | 480 | <td><?= h($type) ?></td> |
... | ... | @@ -483,16 +503,10 @@ foreach ( $materiel->emprunts as $emprunts ) : |
483 | 503 | <?php if ($nbFic != 0) { ?> |
484 | 504 | <table> |
485 | 505 | <tr> |
506 | + <th class="actions"><?= __('') ?></th> | |
486 | 507 | <th><?= __('Nom') ?></th> |
487 | 508 | <th><?= __('Type') ?></th> |
488 | 509 | <th><?= __('Miniature') ?></th> |
489 | - <th style="width: 50px;"><?= __('Télécharger') ?></th> | |
490 | - <?php | |
491 | - if(($role == 'Utilisateur' && (in_array($username, [$materiel->nom_createur, $materiel->nom_responsable]))) || (in_array($role, ['Administration', 'Administration Plus', 'Super Administrateur'])) || ($role == 'Responsable' && ($materiel->groupes_metier_id == $userConnected->groupes_metier_id || $materiel->groupes_thematique_id == $userConnected->groupe_thematique_id))) { | |
492 | - ?> | |
493 | - <th style="width: 50px;"><?= __('Editer') ?></th> | |
494 | - <th style="width: 50px;"><?= __('Supprimer') ?></th> | |
495 | - <?php } ?> | |
496 | 510 | </tr> |
497 | 511 | <?php |
498 | 512 | |
... | ... | @@ -509,11 +523,7 @@ foreach ( $materiel->documents as $documents ) : |
509 | 523 | ?> |
510 | 524 | <tr> |
511 | 525 | |
512 | - <td><?= $this->Html->link($documents->nom, ['controller' => 'documents', 'action' => 'view', $documents->id]) ?></td> | |
513 | - <td><?= $type ?></td> | |
514 | - <td><?= $p ?></td> | |
515 | - | |
516 | - <td class="actions"> | |
526 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
517 | 527 | <?php |
518 | 528 | if ($documents->photo) { |
519 | 529 | echo $this->Html->link ( __ ( '<i class="icon-download-alt"></i>' ), '/webroot/img/photos/' . $documents->id . '.' . $documents->type_doc, [ |
... | ... | @@ -528,23 +538,19 @@ foreach ( $materiel->documents as $documents ) : |
528 | 538 | 'escape' => false |
529 | 539 | ] ); |
530 | 540 | } |
531 | - ?> | |
532 | - </td> | |
533 | - <?php | |
534 | - if(($role == 'Utilisateur' && (in_array($username, [$materiel->nom_createur, $materiel->nom_responsable]))) || (in_array($role, ['Administration', 'Administration Plus', 'Super Administrateur'])) || ($role == 'Responsable' && ($materiel->groupes_metier_id == $userConnected->groupes_metier_id || $materiel->groupes_thematique_id == $userConnected->groupe_thematique_id))) { | |
541 | + | |
542 | + if(($role == 'Utilisateur' && (in_array($username, [$materiel->nom_createur, $materiel->nom_responsable]))) || (in_array($role, ['Administration', 'Administration Plus', 'Super Administrateur'])) || ($role == 'Responsable' && ($materiel->groupes_metier_id == $userConnected->groupes_metier_id || $materiel->groupes_thematique_id == $userConnected->groupe_thematique_id))) { | |
535 | 543 | ?> |
536 | - <td class="actions"> | |
537 | 544 | <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['controller' => 'Documents', 'action' => 'edit', $documents->id], ['escape' => false, 'style' => 'margin:0'])?> |
538 | - </td> | |
539 | - <td class="actions"> | |
540 | 545 | <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['controller' => 'Documents', 'action' => 'delete', $documents->id], ['escape' => false, 'style' => 'margin:0', 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $documents->id)])?> |
546 | + <?php } ?> | |
541 | 547 | </td> |
542 | - <?php } ?> | |
548 | + <td><?= $this->Html->link($documents->nom, ['controller' => 'documents', 'action' => 'view', $documents->id]) ?></td> | |
549 | + <td><?= $type ?></td> | |
550 | + <td><?= $p ?></td> | |
551 | + | |
543 | 552 | </tr> |
544 | - <?php | |
545 | - endforeach | |
546 | - ; | |
547 | - ?> | |
553 | + <?php endforeach; ?> | |
548 | 554 | </table> |
549 | 555 | <?php }else { echo 'Aucun fichier pour ce matériel.'; } ?> |
550 | 556 | </div> | ... | ... |
src/Template/Organismes/index.ctp
... | ... | @@ -4,16 +4,15 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | + <th class="actions"><?= __('') ?></th> | |
7 | 8 | <th><?= $this->Paginator->sort('nom', 'Nom') ?></th> |
8 | - <th class="actions"><?= __('') ?></th> | |
9 | + | |
9 | 10 | </tr> |
10 | 11 | </thead> |
11 | 12 | <tbody> |
12 | 13 | <?php foreach ($organismes as $organisme): ?> |
13 | 14 | <tr> |
14 | - <td class="smallText"><?= $this->Html->link($organisme->nom, ['action' => 'view', $organisme->id]) ?></td> | |
15 | - | |
16 | - <td class="actions" style="padding: 6px 0;"> | |
15 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
17 | 16 | <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $organisme->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> |
18 | 17 | |
19 | 18 | <?php if (in_array($role, ['Administration Plus', 'Super Administrateur'])) { ?> |
... | ... | @@ -24,6 +23,10 @@ |
24 | 23 | <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $organisme->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $organisme->id)]) ?> |
25 | 24 | <?php } ?> |
26 | 25 | </td> |
26 | + | |
27 | + <td class="smallText"><?= $this->Html->link($organisme->nom, ['action' => 'view', $organisme->id]) ?></td> | |
28 | + | |
29 | + | |
27 | 30 | |
28 | 31 | </tr> |
29 | 32 | <?php endforeach; ?> | ... | ... |
src/Template/Sites/index.ctp
... | ... | @@ -4,8 +4,9 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | + <th class="actions"><?= __('') ?></th> | |
7 | 8 | <th><?= $this->Paginator->sort('nom', 'Nom') ?></th> |
8 | - <th class="actions"><?= __('') ?></th> | |
9 | + | |
9 | 10 | </tr> |
10 | 11 | </thead> |
11 | 12 | <tbody> |
... | ... | @@ -16,9 +17,7 @@ |
16 | 17 | |
17 | 18 | |
18 | 19 | <tr> |
19 | - <td class="smallText"><?= $this->Html->link($site->nom, ['action' => 'view', $site->id]) ?></td> | |
20 | - | |
21 | - <td class="actions" style="padding: 6px 0;"> | |
20 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
22 | 21 | <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $site->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> |
23 | 22 | |
24 | 23 | <?php if (in_array($role, ['Administration Plus', 'Super Administrateur'])) { ?> |
... | ... | @@ -29,6 +28,10 @@ |
29 | 28 | <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $site->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $site->id)]) ?> |
30 | 29 | <?php } ?> |
31 | 30 | </td> |
31 | + | |
32 | + <td class="smallText"><?= $this->Html->link($site->nom, ['action' => 'view', $site->id]) ?></td> | |
33 | + | |
34 | + | |
32 | 35 | |
33 | 36 | </tr> |
34 | 37 | <?php } | ... | ... |
src/Template/SousCategories/index.ctp
... | ... | @@ -4,18 +4,16 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | + <th class="actions"><?= __('') ?></th> | |
7 | 8 | <th><?= $this->Paginator->sort('nom', 'Nom') ?></th> |
8 | 9 | <th><?= $this->Paginator->sort('categorie_id', 'Catégorie') ?></th> |
9 | - <th class="actions"><?= __('') ?></th> | |
10 | + | |
10 | 11 | </tr> |
11 | 12 | </thead> |
12 | 13 | <tbody> |
13 | 14 | <?php foreach ($sousCategories as $sousCategory): ?> |
14 | 15 | <tr> |
15 | - <td class="smallText"><?= $this->Html->link($sousCategory->nom, ['action' => 'view', $sousCategory->id]) ?></td> | |
16 | - <td class="smallText"><?= $sousCategory->has('category') ? $this->Html->link($sousCategory->category->nom, ['controller' => 'Categories', 'action' => 'view', $sousCategory->category->id]) : '' ?></td> | |
17 | - | |
18 | - <td class="actions" style="padding: 6px 0;"> | |
16 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
19 | 17 | <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $sousCategory->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> |
20 | 18 | |
21 | 19 | <?php if (in_array($role, ['Administration Plus', 'Super Administrateur'])) { ?> |
... | ... | @@ -26,6 +24,10 @@ |
26 | 24 | <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $sousCategory->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $sousCategory->id)]) ?> |
27 | 25 | <?php } ?> |
28 | 26 | </td> |
27 | + <td class="smallText"><?= $this->Html->link($sousCategory->nom, ['action' => 'view', $sousCategory->id]) ?></td> | |
28 | + <td class="smallText"><?= $sousCategory->has('category') ? $this->Html->link($sousCategory->category->nom, ['controller' => 'Categories', 'action' => 'view', $sousCategory->category->id]) : '' ?></td> | |
29 | + | |
30 | + | |
29 | 31 | |
30 | 32 | </tr> |
31 | 33 | <?php endforeach; ?> | ... | ... |
src/Template/Suivis/index.ctp
... | ... | @@ -4,6 +4,7 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | + <th class="actions"><?= __('') ?></th> | |
7 | 8 | <th><?= $this->Paginator->sort('id', 'N°') ?></th> |
8 | 9 | <th><?= $this->Paginator->sort('materiel_id', 'Matériel') ?></th> |
9 | 10 | <th><?= $this->Paginator->sort('numero_laboratoire', 'N° interne (labo)') ?></th> |
... | ... | @@ -11,12 +12,18 @@ |
11 | 12 | <th><?= $this->Paginator->sort('date_prochain_controle', 'Date prochaine intervention') ?></th> |
12 | 13 | <th><?= $this->Paginator->sort('type_suivi_id', "Type d'intervention") ?></th> |
13 | 14 | <th><?= $this->Paginator->sort('statut', "Statut") ?></th> |
14 | - <th class="actions"><?= __('') ?></th> | |
15 | + | |
15 | 16 | </tr> |
16 | 17 | </thead> |
17 | 18 | <tbody> |
18 | 19 | <?php foreach ($suivis as $suivi): ?> |
19 | 20 | <tr> |
21 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
22 | + <?php if(($role == 'Utilisateur' && in_array($username, [$suivi->nom_createur])) || (in_array($role, ['Administration', 'Administration Plus', 'Super Administrateur'])) || $role == 'Responsable' && ($suivi->groupes_metier_id == $userConnected->groupes_metier_id || $suivi->groupes_thematique_id == $userConnected->groupe_thematique_id)) { ?> | |
23 | + <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['action' => 'edit', $suivi->id], ['title' => 'Editer', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> | |
24 | + <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $suivi->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $suivi->id)]) ?> | |
25 | + <?php } ?> | |
26 | + </td> | |
20 | 27 | <td class="smallText"><?php echo $this->Html->link('Suivi '.$this->Number->format($suivi->id), ['action' => 'view', $suivi->id])?></td> |
21 | 28 | <td class="smallText"><?= $suivi->has('materiel') ? $this->Html->link($suivi->materiel->designation, ['controller' => 'Materiels', 'action' => 'view', $suivi->materiel->id]) : '' ?></td> |
22 | 29 | <td class="smallText"><?= $suivi->has('materiel') ? h($suivi->materiel->numero_laboratoire) : '' ?></td> |
... | ... | @@ -25,12 +32,7 @@ |
25 | 32 | <td class="smallText"><?= $suivi->has('type_suivi') ? h($suivi->type_suivi->nom) : '' ?></td> |
26 | 33 | <td class="smallText"><?= h($suivi->statut) ?></td> |
27 | 34 | |
28 | - <td class="actions" style="padding: 6px 0;"> | |
29 | - <?php if(($role == 'Utilisateur' && in_array($username, [$suivi->nom_createur])) || (in_array($role, ['Administration', 'Administration Plus', 'Super Administrateur'])) || $role == 'Responsable' && ($suivi->groupes_metier_id == $userConnected->groupes_metier_id || $suivi->groupes_thematique_id == $userConnected->groupe_thematique_id)) { ?> | |
30 | - <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['action' => 'edit', $suivi->id], ['title' => 'Editer', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> | |
31 | - <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $suivi->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $suivi->id)]) ?> | |
32 | - <?php } ?> | |
33 | - </td> | |
35 | + | |
34 | 36 | </tr> |
35 | 37 | <?php endforeach; ?> |
36 | 38 | </tbody> | ... | ... |
src/Template/Suivis/view.ctp
... | ... | @@ -63,17 +63,9 @@ |
63 | 63 | <?php if (!empty($suivi->documents)) { ?> |
64 | 64 | <table> |
65 | 65 | <tr> |
66 | + <th class="actions"><?= __('') ?></th> | |
66 | 67 | <th><?= __('Nom') ?></th> |
67 | 68 | <th><?= __('Type') ?></th> |
68 | - <th style="width:50px;"><?= __('Détail') ?></th> | |
69 | - <th style="width:50px;"><?= __('Télécharger') ?></th> | |
70 | - | |
71 | - <?php | |
72 | - if(($role == 'Utilisateur' && in_array($username, [$suivi->nom_createur])) || (in_array($role, ['Administration', 'Administration Plus', 'Super Administrateur'])) || $role == 'Responsable' && ($suivi->groupes_metier_id == $userConnected->groupes_metier_id || $suivi->groupes_thematique_id == $userConnected->groupe_thematique_id)) { | |
73 | - ?> | |
74 | - <th style="width: 50px;"><?= __('Editer') ?></th> | |
75 | - <th style="width:50px;"><?= __('Supprimer') ?></th> | |
76 | - <?php } ?> | |
77 | 69 | </tr> |
78 | 70 | <?php foreach ($suivi->documents as $documents): |
79 | 71 | |
... | ... | @@ -81,25 +73,21 @@ |
81 | 73 | |
82 | 74 | ?> |
83 | 75 | <tr> |
84 | - <td><?= $this->Html->link($documents->nom, ['controller' => 'documents', 'action' => 'view', $documents->id]) ?></td> | |
85 | - <td><?= $type ?></td> | |
86 | - | |
87 | - <td class="actions"> | |
88 | - <?= $this->Html->link(__('<i class="icon-search"></i>'), ['controller' => 'Documents', 'action' => 'view', $documents->id], ['escape' => false, 'style' => 'margin:0']) ?> | |
89 | - </td> | |
90 | - <td class="actions"> | |
76 | + | |
77 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
91 | 78 | <?= $this->Html->link(__('<i class="icon-download-alt"></i>'), '/webroot/files/'.$documents->id.'.'.$documents->type_doc, ['title' => 'Télécharger', 'style' => 'margin:0', 'escape' => false ]) ?> |
92 | - </td> | |
79 | + | |
93 | 80 | <?php |
94 | 81 | if(($role == 'Utilisateur' && in_array($username, [$suivi->nom_createur])) || (in_array($role, ['Administration', 'Administration Plus', 'Super Administrateur'])) || $role == 'Responsable' && ($suivi->groupes_metier_id == $userConnected->groupes_metier_id || $suivi->groupes_thematique_id == $userConnected->groupe_thematique_id)) { |
95 | 82 | ?> |
96 | - <td class="actions"> | |
97 | 83 | <?= $this->Html->link(__('<i class="icon-pencil"></i>'), ['controller' => 'Documents', 'action' => 'edit', $documents->id], ['escape' => false, 'style' => 'margin:0'])?> |
98 | - </td> | |
99 | - <td class="actions"> | |
100 | 84 | <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['controller' => 'Documents', 'action' => 'delete', $documents->id], ['escape' => false, 'style' => 'margin:0', 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $documents->id)]) ?> |
101 | 85 | </td> |
102 | 86 | <?php } ?> |
87 | + | |
88 | + <td><?= $this->Html->link($documents->nom, ['controller' => 'documents', 'action' => 'view', $documents->id]) ?></td> | |
89 | + <td><?= $type ?></td> | |
90 | + | |
103 | 91 | </tr> |
104 | 92 | <?php endforeach; ?> |
105 | 93 | </table> | ... | ... |
src/Template/SurCategories/index.ctp
... | ... | @@ -4,16 +4,14 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | + <th class="actions"><?= __('') ?></th> | |
7 | 8 | <th><?= $this->Paginator->sort('nom', 'Nom') ?></th> |
8 | - <th class="actions"><?= __('') ?></th> | |
9 | 9 | </tr> |
10 | 10 | </thead> |
11 | 11 | <tbody> |
12 | 12 | <?php foreach ($surCategories as $surCategory): ?> |
13 | 13 | <tr> |
14 | - <td class="smallText"><?= $this->Html->link($surCategory->nom, ['action' => 'view', $surCategory->id]) ?></td> | |
15 | - | |
16 | - <td class="actions" style="padding: 6px 0;"> | |
14 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
17 | 15 | <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $surCategory->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> |
18 | 16 | |
19 | 17 | <?php if (in_array($role, ['Administration Plus', 'Super Administrateur'])) { ?> |
... | ... | @@ -24,6 +22,9 @@ |
24 | 22 | <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $surCategory->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $surCategory->id)]) ?> |
25 | 23 | <?php } ?> |
26 | 24 | </td> |
25 | + <td class="smallText"><?= $this->Html->link($surCategory->nom, ['action' => 'view', $surCategory->id]) ?></td> | |
26 | + | |
27 | + | |
27 | 28 | </tr> |
28 | 29 | <?php endforeach; ?> |
29 | 30 | </tbody> | ... | ... |
src/Template/TypeDocuments/index.ctp
... | ... | @@ -4,8 +4,8 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | + <th class="actions"><?= __('') ?></th> | |
7 | 8 | <th><?= $this->Paginator->sort('nom', 'Nom') ?></th> |
8 | - <th class="actions"><?= __('') ?></th> | |
9 | 9 | </tr> |
10 | 10 | </thead> |
11 | 11 | <tbody> |
... | ... | @@ -16,9 +16,7 @@ |
16 | 16 | ?> |
17 | 17 | |
18 | 18 | <tr> |
19 | - <td class="smallText"><?= $this->Html->link($typeDocument->nom, ['action' => 'view', $typeDocument->id]) ?></td> | |
20 | - | |
21 | - <td class="actions" style="padding: 6px 0;"> | |
19 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
22 | 20 | <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $typeDocument->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> |
23 | 21 | |
24 | 22 | <?php if (in_array($role, ['Administration Plus', 'Super Administrateur'])) { ?> |
... | ... | @@ -29,6 +27,9 @@ |
29 | 27 | <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $typeDocument->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $typeDocument->id)]) ?> |
30 | 28 | <?php } ?> |
31 | 29 | </td> |
30 | + <td class="smallText"><?= $this->Html->link($typeDocument->nom, ['action' => 'view', $typeDocument->id]) ?></td> | |
31 | + | |
32 | + | |
32 | 33 | |
33 | 34 | </tr> |
34 | 35 | ... | ... |
src/Template/TypeSuivis/index.ctp
... | ... | @@ -4,16 +4,14 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | - <th><?= $this->Paginator->sort('nom', 'Nom') ?></th> | |
8 | - <th class="actions"><?= __('') ?></th> | |
7 | + <th class="actions"><?= __('') ?></th> | |
8 | + <th><?= $this->Paginator->sort('nom', 'Nom') ?></th> | |
9 | 9 | </tr> |
10 | 10 | </thead> |
11 | 11 | <tbody> |
12 | 12 | <?php foreach ($typeSuivis as $typeSuivi): ?> |
13 | 13 | <tr> |
14 | - <td class="smallText"><?= $this->Html->link($typeSuivi->nom, ['action' => 'view', $typeSuivi->id]) ?></td> | |
15 | - | |
16 | - <td class="actions" style="padding: 6px 0;"> | |
14 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
17 | 15 | <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $typeSuivi->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> |
18 | 16 | |
19 | 17 | <?php if (in_array($role, ['Administration Plus', 'Super Administrateur'])) { ?> |
... | ... | @@ -24,6 +22,9 @@ |
24 | 22 | <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $typeSuivi->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $typeSuivi->id)]) ?> |
25 | 23 | <?php } ?> |
26 | 24 | </td> |
25 | + <td class="smallText"><?= $this->Html->link($typeSuivi->nom, ['action' => 'view', $typeSuivi->id]) ?></td> | |
26 | + | |
27 | + | |
27 | 28 | |
28 | 29 | </tr> |
29 | 30 | <?php endforeach; ?> | ... | ... |
src/Template/Users/index.ctp
... | ... | @@ -4,6 +4,7 @@ |
4 | 4 | <table cellpadding="0" cellspacing="0"> |
5 | 5 | <thead> |
6 | 6 | <tr> |
7 | + <th class="actions"><?= __('') ?></th> | |
7 | 8 | <th><?= $this->Paginator->sort('nom') ?></th> |
8 | 9 | <th><?= $this->Paginator->sort('role') ?></th> |
9 | 10 | <th><?= $this->Paginator->sort('groupes_metier_id', $configuration->nom_groupe_metier) ?></th> |
... | ... | @@ -14,12 +15,7 @@ |
14 | 15 | <tbody> |
15 | 16 | <?php foreach ($users as $user): ?> |
16 | 17 | <tr> |
17 | - <td class="smallText"><?= $this->Html->link($user->nom, ['action' => 'view', $user->id]) ?></td> | |
18 | - <td class="smallText"><?= h($user->role) ?></td> | |
19 | - <td class="smallText"><?= $user->has('groupes_metier') ? h($user->groupes_metier->nom) : '' ?></td> | |
20 | - <td class="smallText"><?= $user->has('groupes_thematique') ? h($user->groupes_thematique->nom) : '' ?></td> | |
21 | - | |
22 | - <td class="actions" style="padding: 6px 0;"> | |
18 | + <td class="actions" style="padding: 6px 0; text-align: left;"> | |
23 | 19 | <?= $this->Html->link(__('<i class="icon-eye-open"></i>'), ['action' => 'view', $user->id], ['title' => 'Visualiser', 'style' => 'margin: 0 2px', 'escape' => false ]) ?> |
24 | 20 | |
25 | 21 | <?php if($role == 'Super Administrateur') { ?> |
... | ... | @@ -27,6 +23,12 @@ |
27 | 23 | <?= $this->Form->postLink(__('<i class="icon-trash"></i>'), ['action' => 'delete', $user->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $user->id)]) ?> |
28 | 24 | <?php } ?> |
29 | 25 | </td> |
26 | + <td class="smallText"><?= $this->Html->link($user->nom, ['action' => 'view', $user->id]) ?></td> | |
27 | + <td class="smallText"><?= h($user->role) ?></td> | |
28 | + <td class="smallText"><?= $user->has('groupes_metier') ? h($user->groupes_metier->nom) : '' ?></td> | |
29 | + <td class="smallText"><?= $user->has('groupes_thematique') ? h($user->groupes_thematique->nom) : '' ?></td> | |
30 | + | |
31 | + | |
30 | 32 | |
31 | 33 | </tr> |
32 | 34 | <?php endforeach; ?> | ... | ... |