2009-01-12 21:13:18 -08:00
|
|
|
<div class="contacts form">
|
|
|
|
|
<?php echo $form->create('Contact', array('action'=>'add_to_customer/customerid:'.$customer['Customer']['id']));?>
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend><?php __('Add Contact to: '.$customer['Customer']['name']);?></legend>
|
|
|
|
|
<?php
|
|
|
|
|
echo $form->hidden('customer_id', array('value' => $customer['Customer']['id']));
|
|
|
|
|
echo $form->input('first_name', array('label' => 'First Name', 'title'=>'The first name of this Contact'));
|
|
|
|
|
echo $form->input('last_name', array('label' => 'Last Name', 'title'=>'The last name of this Contact'));
|
|
|
|
|
echo $form->input('email');
|
|
|
|
|
echo $form->input('phone');
|
2009-01-19 16:57:29 -08:00
|
|
|
echo $form->input('mobile');
|
2009-01-12 21:13:18 -08:00
|
|
|
echo $form->input('fax');
|
2009-02-26 16:58:33 -08:00
|
|
|
echo $form->input('contact_category_id', array('label'=>'Contact Department', 'empty' => 'Please Choose a Department'));
|
2009-01-12 21:13:18 -08:00
|
|
|
echo $form->input('notes');
|
|
|
|
|
?>
|
|
|
|
|
</fieldset>
|
|
|
|
|
<?php echo $form->end('Submit');?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="actions">
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link(__('List Contacts', true), array('action'=>'index'));?></li>
|
|
|
|
|
<li><?php echo $html->link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?> </li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|