photo) {
echo $this->Form->postLink(__(''), '/webroot/img/photos/' . $document->id . '.' . $document->type_doc, [
'title' => 'Télécharger',
'style' => 'margin: 0 2px',
'escape' => false
]);
} else {
echo $this->Form->postLink(__(''), '/webroot/files/' . $document->id . '.' . $document->type_doc, [
'title' => 'Télécharger',
'style' => 'margin: 0 2px',
'escape' => false
]);
}
?>
= $this->Html->link(__(''), ['action' => 'edit', $document->id], ['title' => 'Editer', 'style' => 'margin: 0 2px', 'escape' => false]) ?>
= $this->Form->postLink(__(''), ['action' => 'delete', $document->id], ['title' => 'Supprimer', 'style' => 'margin: 0 2px', 'escape' => false, 'confirm' => __('Êtes-vous sur de vouloir supprimer # {0}?', $document->id)]) ?>
|
= $this->Html->link($document->nom, ['action' => 'view', $document->id]) ?> |
materiel_id)) { ?>
= $this->Html->link($materiel->find()->where(['id =' => $document->materiel_id])->first()['designation'], ['controller' => 'Materiels', 'action' => 'view', $document->materiel_id]) ?> |
|
|
= $this->Html->link('Suivi '.$document->suivi_id, ['controller' => 'Suivis', 'action' => 'view', $document->suivi_id]) ?> |
= $document->has('type_document') ? h($document->type_document->nom) : '' ?> |
= h($document->type_doc) ?> |
= $p ?> |