<?php if(isset($versions)) { foreach ($versions as $version): if($version['Version']['product'] == $product['Product']['id']) { ?>
<tr>
<td><?php echo $version['Version']['value']; ?></td>
- <td><?php echo $version['Version']['nature']; ?></td>
+ <td><?php $nature = "Inconnu";
+ if($version['Version']['nature'] == "patch") {
+ $nature = "Patch";
+ } elseif($version['Version']['nature'] == "majmin") {
+ $nature = "Mise à jour mineure";
+ } else {
+ $nature = "Mise à jour majeure";
+ }
+ echo $nature;
+
+ ?></td>
<td>
<?php echo $this->Html->link(
- $this->Html->image('edit.jpg', array('class' => 'button')),
+ $this->Html->image('edit.jpg', array('class' => 'button', 'title' => "Modifier")),
array('controller' => 'versions', 'action' => 'edit', $version['Version']['id']),
array('escape' => false)
).' '.
$this->Form->postLink(
- $this->Html->image('delete.png', array('class' => 'button')),
+ $this->Html->image('delete.png', array('class' => 'button', 'title' => "Supprimer")),
array('controller' => 'versions', 'action' => 'delete', $version['Version']['id']),
array('escape' => false, 'confirm' => 'Etes-vous certain ?')
);
</td>
<td>
<?php echo $this->Html->link(
- $this->Html->image('edit.jpg', array('class' => 'button')),
+ $this->Html->image('edit.jpg', array('class' => 'button', 'title' => "Modifier")),
array('controller' => 'products', 'action' => 'edit', $product['Product']['id']),
array('escape' => false)
).' '.
$this->Form->postLink(
- $this->Html->image('delete.png', array('class' => 'button')),
+ $this->Html->image('delete.png', array('class' => 'button', 'title' => "Supprimer")),
array('action' => 'delete', $product['Product']['id']),
array('escape' => false, 'confirm' => 'Etes-vous certain ?')
);