52 lines
2.2 KiB
PHP
Executable file
52 lines
2.2 KiB
PHP
Executable file
<?php echo $javascript->link('customer_edit'); ?>
|
|
|
|
|
|
<div class="customers form">
|
|
<?php echo $form->create('Customer');?>
|
|
<fieldset>
|
|
<legend><?php __('Edit Customer');?></legend>
|
|
<?php
|
|
echo $form->input('id');
|
|
echo $form->input('name');
|
|
echo $form->input('abn');
|
|
//echo $this->element('payment_terms_box');
|
|
?>
|
|
<div class="input select"><label for="CustomerPaymentTermsOptions">Payment Terms</label><select name="data[Customer][payment_terms]" id="CustomerPaymentTermsOptions">
|
|
<option value="">Select the Terms of Payment</option>
|
|
<option value="100% Payment with Order">100% Payment with Order</option>
|
|
<option value="Net 7 Days for Approved Accounts">Net 7 Days for Approved Accounts</option>
|
|
<option value="Net 14 Days for Approved Accounts">Net 14 Days for Approved Accounts</option>
|
|
<option value="Net 30 Days for Approved Accounts">Net 30 Days for Approved Accounts</option>
|
|
</select></div>
|
|
<?php
|
|
|
|
echo $form->input('payment_terms');
|
|
echo $form->input('discount_pricing_policies', array('label'=>'Discount and Pricing Policies'));
|
|
echo $form->input('notes');
|
|
echo $form->input('url', array('label'=>'Website URL'));
|
|
echo '<div class="input select">';
|
|
echo $form->label('Customer.customer_category_id', 'Customer Category');
|
|
echo $form->select('customer_category_id', $customer_categories, $this->data['Customer']['customer_category_id'], array('label'=>'Customer Category'), false);
|
|
echo '</div>';
|
|
|
|
|
|
|
|
echo $form->input('Industry.Industry', array('multiple'=>'checkbox', 'showParents'=> false, 'options' => $industries));
|
|
|
|
|
|
?>
|
|
|
|
</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>
|
|
|