view.ctp
4.23 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('Edit Suivi'), ['action' => 'edit', $suivi->id]) ?> </li>
<li><?= $this->Form->postLink(__('Delete Suivi'), ['action' => 'delete', $suivi->id], ['confirm' => __('Are you sure you want to delete # {0}?', $suivi->id)]) ?> </li>
<li><?= $this->Html->link(__('List Suivis'), ['action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Suivi'), ['action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Materiels'), ['controller' => 'Materiels', 'action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Materiel'), ['controller' => 'Materiels', 'action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Documents'), ['controller' => 'Documents', 'action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Document'), ['controller' => 'Documents', 'action' => 'add']) ?> </li>
</ul>
</nav>
<div class="suivis view large-9 medium-8 columns content">
<h3><?= h($suivi->id) ?></h3>
<table class="vertical-table">
<tr>
<th><?= __('Materiel') ?></th>
<td><?= $suivi->has('materiel') ? $this->Html->link($suivi->materiel->id, ['controller' => 'Materiels', 'action' => 'view', $suivi->materiel->id]) : '' ?></td>
</tr>
<tr>
<th><?= __('Type Intervention') ?></th>
<td><?= h($suivi->type_intervention) ?></td>
</tr>
<tr>
<th><?= __('Organisme') ?></th>
<td><?= h($suivi->organisme) ?></td>
</tr>
<tr>
<th><?= __('Commentaire') ?></th>
<td><?= h($suivi->commentaire) ?></td>
</tr>
<tr>
<th><?= __('Nom Createur') ?></th>
<td><?= h($suivi->nom_createur) ?></td>
</tr>
<tr>
<th><?= __('Nom Modificateur') ?></th>
<td><?= h($suivi->nom_modificateur) ?></td>
</tr>
<tr>
<th><?= __('Id') ?></th>
<td><?= $this->Number->format($suivi->id) ?></td>
</tr>
<tr>
<th><?= __('Frequence') ?></th>
<td><?= $this->Number->format($suivi->frequence) ?></td>
</tr>
<tr>
<th><?= __('Date Controle') ?></th>
<td><?= h($suivi->date_controle) ?></td>
</tr>
<tr>
<th><?= __('Date Prochain Controle') ?></th>
<td><?= h($suivi->date_prochain_controle) ?></td>
</tr>
<tr>
<th><?= __('Created') ?></th>
<td><?= h($suivi->created) ?></td>
</tr>
<tr>
<th><?= __('Modified') ?></th>
<td><?= h($suivi->modified) ?></td>
</tr>
</table>
<div class="related">
<h4><?= __('Related Documents') ?></h4>
<?php if (!empty($suivi->documents)): ?>
<table cellpadding="0" cellspacing="0">
<tr>
<th><?= __('Id') ?></th>
<th><?= __('Type Doc') ?></th>
<th><?= __('Chemin') ?></th>
<th><?= __('Materiel Id') ?></th>
<th><?= __('Suivi Id') ?></th>
<th class="actions"><?= __('Actions') ?></th>
</tr>
<?php foreach ($suivi->documents as $documents): ?>
<tr>
<td><?= h($documents->id) ?></td>
<td><?= h($documents->type_doc) ?></td>
<td><?= h($documents->chemin) ?></td>
<td><?= h($documents->materiel_id) ?></td>
<td><?= h($documents->suivi_id) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['controller' => 'Documents', 'action' => 'view', $documents->id]) ?>
<?= $this->Html->link(__('Edit'), ['controller' => 'Documents', 'action' => 'edit', $documents->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['controller' => 'Documents', 'action' => 'delete', $documents->id], ['confirm' => __('Are you sure you want to delete # {0}?', $documents->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
</div>
</div>