cmc-sales/views/customers/add.ctp

35 lines
1.9 KiB
Plaintext
Raw Normal View History

<div class="customers form">
<?php echo $form->create('Customer', array('action'=>'add'));?>
<fieldset>
<legend><?php __('Add Customer');?></legend>
<?php
echo $form->input('name', array('label'=>'Company Name', 'title' => 'The Company Name. Eg. XYZ Business Pty Ltd'));
echo $form->input('abn', array('label'=>'ABN', 'title' => 'The 11-digit Australian Business Number for the new Customer. Enter numbers only, no dashes or punctuation'));
echo '<br><span>Add a Contact to this new Customer</span>';
echo $form->input('Contact.0.first_name');
echo $form->input('Contact.0.last_name');
echo $form->input('Contact.0.email');
echo $form->input('Contact.0.phone');
echo $form->input('Contact.0.fax');
echo $form->input('Contact.0.notes');
echo '<br><span>Add an Address for this Customer</span>';
echo $form->input('Address.0.name', array('label'=>'Short Name', 'title' => 'Short Name for this Address. eg. \'Head Quarters\', \'Manufacturing Plant No 7\' '));
echo $form->input('Address.0.address');
echo $form->input('Address.0.city');
echo $form->input('Address.0.state_id');
echo $form->input('Address.0.country_id');
echo $form->input('Address.0.type', array('label' => 'Address Type (Billing,Shipping or Both)', 'options' => array('Billing','Shipping', 'Both Shipping and Billing')));
?>
</fieldset>
<?php echo $form->end('Submit');?>
</div>
<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>