Fixed adding enquiries. Seems to work
This commit is contained in:
parent
9fbaca261f
commit
45ac2e734b
|
|
@ -40,9 +40,8 @@ class EnquiriesController extends AppController {
|
|||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
//$enquiry = $this->Enquiry->read(null, $id);
|
||||
$enquiry = $this->Enquiry->find('first', array('recursive' => 1, 'conditions' => array('Enquiry.id'=>$id)));
|
||||
|
||||
|
||||
//$enquiry = $this->Enquiry->find('first', array('recursive' => 1, 'conditions' => array('Enquiry.id'=>$id)));
|
||||
$enquiry = $this->Enquiry->read(null, $id);
|
||||
$this->set('enquiry', $enquiry);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -10,12 +10,10 @@ doesn't appear in the drop down list, click 'New Contact'")); ?>
|
|||
|
||||
echo $form->input('Customer.name', array('readonly'=>'readonly', 'value'=>$customer['Customer']['name']));
|
||||
echo $form->input('user_id', array('label' =>'Assigned to User'), $users);
|
||||
echo '<div id="contact">';
|
||||
echo $form->input('contact_user_id', array('type'=>'select', 'options'=>$contacts));
|
||||
echo '<br>';
|
||||
|
||||
//echo $ajax->link('New Contact', array('controller' => 'contacts', 'action' => 'add_one',$customer['Customer']['id']), array('update'=>'contact'));
|
||||
//echo $html->image('contact-new.png');
|
||||
echo '</div>';
|
||||
echo '<span>The Contact will be emailed informing them of the new Enquiry</span>';
|
||||
echo $form->input('state_id', array('label'=>'State', 'empty' => 'Please Choose A State'));
|
||||
echo $form->input('country_id');
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ $(function() {
|
|||
autoOpen: false,
|
||||
width: 450,
|
||||
modal: true,
|
||||
position: 'top',
|
||||
position: 'top'
|
||||
});
|
||||
|
||||
$("#addContactUser").click(function() { //Adding a Contact to a Customer.
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ $(function () {
|
|||
|
||||
width: 900,
|
||||
modal: false,
|
||||
position: 'top',
|
||||
buttons: {
|
||||
|
||||
Close: function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue