view.ctp
1.88 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
57
58
59
60
61
<div class="surCategories view">
<h2>Détail domaine</h2>
<table style="margin-bottom: 30px;">
<tr><th style="width: 250px;"></th><th></th></tr>
<?php
echo $this->Html->link(__('<i class="icon-pencil"></i> Editer ce domaine'),
['action' => 'edit', $surCategory->id],
['escape' => false,'onclick' => 'return true;']
);
echo $this->Form->postLink(__('<i class="icon-trash"></i> Supprimer ce domaine'),
['action' => 'delete', $surCategory->id],
['style'=>'margin-left: 110px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $surCategory->id)]
);
$displayElement(__('Nom'), h($surCategory->nom));
?>
</table>
<h3 id="t_suivis" style="cursor: pointer;">
<i class="icon-chevron-down" style="font-size: 14px;" id="i_suivis"></i>
<span style="text-decoration: underline;">Catégorie associé (<?= sizeof($categories) ?>)</span>
</h3>
<div id="suivis" style="margin-bottom: 20px;">
<?php if (!empty($categories)) { ?>
<table>
<tr>
<th><?= __('Nom') ?></th>
<th style="width:50px;"><?= __('Détail') ?></th>
</tr>
<?php foreach ($categories as $category): ?>
<tr>
<td><?= h($category->nom) ?></td>
<td class="actions">
<?= $this->Html->link(__('<i class="icon-search"></i>'), ['controller' => 'Categories', 'action' => 'view', $category->id], ['escape' => false, 'style' => 'margin:0']) ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php }else { echo 'Aucune catégorie lié à ce domaine.'; } ?>
</div>
</div>
<div class="actions">
<?php echo $this->element('menu') ?>
<?php echo $this->element('menu_view',
[ 'pluralHumanName' => 'Domaines',
'singularHumanName' => 'Domaine',
'lien' => $surCategory->id ]) ?>
</div>