diff --git a/controllers/quotes_controller.php b/controllers/quotes_controller.php
index 43ce9e5b..522d7ae5 100755
--- a/controllers/quotes_controller.php
+++ b/controllers/quotes_controller.php
@@ -51,43 +51,6 @@ class QuotesController extends AppController {
}
-
- function add() {
-
- if(isset($this->params['named']['enquiryid'])) {
- $enquiryid = $this->params['named']['enquiryid'];
- $this->Quote->create();
- $number_of_revisions = $this->Quote->findCount('Quote.enquiry_id ='. $enquiryid);
- $this->data['Quote']['revision'] = $number_of_revisions;
- $this->data['Quote']['enquiry_id'] = $enquiryid;
- $this->data['Quote']['date_issued'] = date('Y-m-d');
-
- $this->data['Quote']['currency_id'] = 2;
-
-
- if ($this->Quote->save($this->data)) {
-
- $quoteid = $this->Quote->id;
- //$this->data['Document']['']
-
-
- $this->Session->setFlash(__('The Quote has been saved', true));
- $this->redirect(array('action'=>'view/'.$quoteid));
- }
- else {
- $this->Session->setFlash(__('The Quote was not saved. Something has gone wrong.', true));
- $this->redirect(array('action'=>'index'));
- }
- }
- else {
- $this->Session->setFlash(__('Invalid Enquiry ID', true));
- $this->redirect(array('controller'=>'enquiries','action'=>'index'));
- }
-
- }
-
-
-
function edit($id = null) {
$this->layout = 'ajax';
diff --git a/views/quotes/add.ctp b/views/quotes/add.ctp
deleted file mode 100755
index 763f2544..00000000
--- a/views/quotes/add.ctp
+++ /dev/null
@@ -1,32 +0,0 @@
-
-create('Quote');?>
-
-end('Submit');?>
-
-
-
- - link(__('List Quotes', true), array('action' => 'index'));?>
- - link(__('List Enquiries', true), array('controller' => 'enquiries', 'action' => 'index')); ?>
- - link(__('New Enquiry', true), array('controller' => 'enquiries', 'action' => 'add')); ?>
- - link(__('List Currencies', true), array('controller' => 'currencies', 'action' => 'index')); ?>
- - link(__('New Currency', true), array('controller' => 'currencies', 'action' => 'add')); ?>
- - link(__('List Documents', true), array('controller' => 'documents', 'action' => 'index')); ?>
- - link(__('New Document', true), array('controller' => 'documents', 'action' => 'add')); ?>
-
-
diff --git a/views/quotes/view.ctp b/views/quotes/view.ctp
deleted file mode 100755
index 9cf125b3..00000000
--- a/views/quotes/view.ctp
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
Quote: =$html->link($quote['Enquiry']['title'], array('controller' => 'enquiries', 'action' => 'view', $quote['Enquiry']['id'])); ?> Rev =$quote['Quote']['revision']?>
-
- - >
- - >
-
-
-
- - >
- - >
-
-
-
- - >
- - >
- link($quote['Currency']['name'], array('controller' => 'currencies', 'action' => 'view', $quote['Currency']['id'])); ?>
-
-
- - >
- - >
-
-
-
- - >
- - >
-
-
-
- - >
- - >
-
-
-
- - >
- - >
-
-
-
- - >
- - >
-
-
-
- - >
- - >
-
-
-
- - >
- - >
-
-
-
- - >
- - >
-
-
-
- - >
- - >
- link($quote['Document']['id'], array('controller' => 'documents', 'action' => 'view', $quote['Document']['id'])); ?>
-
-
-
-
-
-
- - link(__('Edit Quote', true), array('action' => 'edit', $quote['Quote']['id'])); ?>
- - link(__('Delete Quote', true), array('action' => 'delete', $quote['Quote']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quote['Quote']['id'])); ?>
- - link(__('List Quotes', true), array('action' => 'index')); ?>
- - link(__('New Quote', true), array('action' => 'add')); ?>
- - link(__('List Enquiries', true), array('controller' => 'enquiries', 'action' => 'index')); ?>
- - link(__('New Enquiry', true), array('controller' => 'enquiries', 'action' => 'add')); ?>
- - link(__('List Currencies', true), array('controller' => 'currencies', 'action' => 'index')); ?>
- - link(__('New Currency', true), array('controller' => 'currencies', 'action' => 'add')); ?>
- - link(__('List Documents', true), array('controller' => 'documents', 'action' => 'index')); ?>
- - link(__('New Document', true), array('controller' => 'documents', 'action' => 'add')); ?>
-
-
-
-
-
\ No newline at end of file
diff --git a/views/quotes/view.ctpOLD b/views/quotes/view.ctpOLD
deleted file mode 100755
index 11fdbe05..00000000
--- a/views/quotes/view.ctpOLD
+++ /dev/null
@@ -1,221 +0,0 @@
-
-
-
-
- - >
- - >
- nice($quote['Quote']['created']); ?>
-
-
-
- - >
- - >
- nice($quote['Quote']['modified']); ?>
-
-
- - >
- - >
- link($quote['Enquiry']['title'], array('controller'=> 'enquiries', 'action'=>'view', $quote['Enquiry']['id'])); ?>
-
-
- - >
- - >
-
-
-
- - >
- - >
-
-
-
- - >
- - >
-
-
-
- - >
- - >
-
-
-
- - >
- - >
-
-
-
-
-
-
-
- - link(__('Edit Details', true), array('action'=>'edit', $quote['Quote']['id'])); ?>
-
-
-
-
-
-
-
-
- image('ajax-loader.gif'); ?>
-
-
-
-
-
-
-
Cover Page
-
-link('View', array('controller'=> 'quote_pages', 'action'=>'show', $quotePage['id']),
- array('update'=>'viewpage', 'indicator' => 'LoadingDiv','loading'=>'Effect.appear(\'viewpage\')'));
-
-
- // echo $ajax->link('View', array('controller'=> 'quote_pages', 'action'=>'show', $quotePage['id']),
- //array('update'=>'viewpage', 'indicator' => 'LoadingDiv'));
-?>
-
-
-link(__('Edit', true), array('controller'=> 'quote_pages', 'action'=>'edit', $quotePage['id']));
- echo $ajax->link('Edit', array('controller'=> 'quote_pages', 'action'=>'edit', $quotePage['id']),
- array('update'=>'viewpage', 'indicator' => 'LoadingDiv','loading'=>'Effect.appear(\'viewpage\')'));
-?>
-
-
-link(__('Delete', true), array('controller'=> 'quote_pages', 'action'=>'delete', $quotePage['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quotePage['id'])); ?>
-
-
-
-
-
-
-
-
- - link(__('New Cover Page', true), array('controller'=> 'quote_pages', 'action'=>'add/'.$quote['Quote']['id']));?>
-
-
-
-
-
-
-
-
-