view.ctp
1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<div class="typeDocuments view">
<h2>Détail du type de Document</h2>
<table style="margin-bottom: 30px;">
<tr>
<th style="width: 250px;"></th>
<th></th>
</tr>
<?php
if (in_array($role, [
'Administration Plus',
'Super Administrateur'
])) {
echo $this->Html->link(__('<i class="icon-pencil"></i> Editer ce type de Document'), [
'action' => 'edit',
$typeDocument->id
], [
'escape' => false,
'onclick' => 'return true;'
]);
}
if (in_array($role, [
'Super Administrateur'
])) {
echo $this->Form->postLink(__('<i class="icon-trash"></i> Supprimer ce type de Document'), [
'action' => 'delete',
$typeDocument->id
], [
'style' => 'margin-left: 110px',
'escape' => false,
'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $typeDocument->id)
]);
}
$displayElement(__('Nom'), h($typeDocument->nom));
?>
</table>
</div>
<div class="actions">
<?php echo $this->element('menu') ?>
<?php
echo $this->element('menu_view', [
'pluralHumanName' => 'Types Documents',
'singularHumanName' => 'Type Document',
'lien' => $typeDocument->id
])?>
</div>