2011-06-29 00:25:33 -07:00
<?php echo $javascript->link('similar-customer.js'); ?>
2009-02-03 17:49:44 -08:00
2009-01-12 21:13:18 -08:00
<div class="customers form">
2009-02-03 17:49:44 -08:00
2009-01-12 21:13:18 -08:00
<?php echo $form->create('Customer', array('action'=>'add'));?>
<fieldset>
<legend><?php __('Add Customer');?></legend>
<?php
2010-02-18 21:38:43 -08:00
echo $form->input('name', array('id'=>'customerName'));
2010-03-15 20:20:38 -07:00
2010-03-10 15:32:00 -08:00
echo $form->input('country_name', array('default'=>'Australia'));
echo $form->input('country_id', array('type'=>'hidden', 'value'=>1));
echo $form->input('abn', array('label'=>'ABN', 'title' => 'The 11-digit Australian Business Number for the new Customer. Spaces or no spaces - it does not matter', 'div'=>array('id'=>'ABN')));
2009-02-03 21:28:46 -08:00
echo $this->element('payment_terms_box');
echo $form->input('discount_pricing_policies', array('label'=>'Discount and Pricing Policies'));
2009-02-11 20:02:05 -08:00
echo '<div class="input select">';
echo $form->label('Customer.customer_category_id', 'Customer Category');
echo $form->select('customer_category_id', $customer_categories, 0, array('label'=>'Customer Category'), false);
echo '</div>';
2009-02-03 21:28:46 -08:00
echo $form->input('notes', array('label' => 'Notes about this Customer'));
2009-07-12 23:55:17 -07:00
echo $form->input('url', array('label'=>'Website URL'));
2009-02-03 17:49:44 -08:00
echo '<br><br>';
2009-01-18 19:33:22 -08:00
echo $form->end('Submit');
2009-01-12 21:13:18 -08:00
?>
2009-01-18 19:33:22 -08:00
2009-01-12 21:13:18 -08:00
</fieldset>
2009-01-18 19:33:22 -08:00
2009-02-03 17:49:44 -08:00
2009-01-12 21:13:18 -08:00
</div>
2009-02-03 17:49:44 -08:00
2009-01-12 21:13:18 -08:00
<div class="actions">
<ul>
<li><?php echo $html->link(__('List Customers', true), array('action'=>'index'));?></li>
<li><?php echo $html->link(__('List Addresses', true), array('controller'=> 'addresses', 'action'=>'index')); ?> </li>
<li><?php echo $html->link(__('New Address', true), array('controller'=> 'addresses', '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>
2009-01-19 16:57:29 -08:00
2010-03-15 20:20:38 -07:00
<div id="dialog" title="Is this customer already in the database?">
<p>Please confirm the customer you are adding is not one of these customers:</p>
<ul id="similarCustList">
</ul>
</div>