Removed Delete Invoice

This commit is contained in:
Karl Cordes 2010-07-16 14:35:13 +10:00
parent dcce02a029
commit e39c06a4a1
2 changed files with 3 additions and 3 deletions

View file

@ -91,7 +91,7 @@ class InvoicesController extends AppController {
$this->set(compact('users', 'jobs')); $this->set(compact('users', 'jobs'));
} }
function delete($id = null) { /*function delete($id = null) {
if (!$id) { if (!$id) {
$this->Session->setFlash(__('Invalid id for Invoice', true)); $this->Session->setFlash(__('Invalid id for Invoice', true));
$this->redirect(array('action'=>'index')); $this->redirect(array('action'=>'index'));
@ -100,7 +100,7 @@ class InvoicesController extends AppController {
$this->Session->setFlash(__('Invoice deleted', true)); $this->Session->setFlash(__('Invoice deleted', true));
$this->redirect(array('action'=>'index')); $this->redirect(array('action'=>'index'));
} }
} }*/
} }

View file

@ -79,7 +79,7 @@
<td class="actions"> <td class="actions">
<?php echo $html->link(__('View', true), array('action' => 'view', $invoice['Invoice']['id'])); ?> <?php echo $html->link(__('View', true), array('action' => 'view', $invoice['Invoice']['id'])); ?>
<?php echo $html->link(__('Edit', true), array('action' => 'edit', $invoice['Invoice']['id'])); ?> <?php echo $html->link(__('Edit', true), array('action' => 'edit', $invoice['Invoice']['id'])); ?>
<?php echo $html->link(__('Delete', true), array('action' => 'delete', $invoice['Invoice']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $invoice['Invoice']['id'])); ?>
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>