cmc-sales/php/app/views/addresses/add_another.ctp

17 lines
1.2 KiB
PHP
Executable file

<legend><?php __('Add An Address');?></legend> <? echo $ajax->link('Remove this', array('controller' => 'addresses', 'action' => 'remove_another', $increment), array('update' => 'addresses'.$increment)); ?>
<?php
echo $form->input("Address.$increment.address", array('label' => 'Address', 'title' => 'The Address to be added'));
echo $form->input("Address.$increment.city", array('label' => 'City', 'title' => 'Name of the City/Suburb for this Address'));
echo $form->input("Address.$increment.state_id", array('value' => $states));
echo $form->input("Address.$increment.postcode", array('label' => 'Post Code', 'title' => 'The Post Code for this Address. Eg. 2015 for Alexandria'));
echo $form->input("Address.$increment.country_id", array('value' => $countries));
echo $form->input("Address.$increment.type", array('label' => 'Address Type (Billing,Shipping or Both)', 'options' => array('Billing','Shipping', 'Both Shipping and Billing', 'Other')));
$next = $increment;
$next++;
echo $ajax->link('Add another Address to this New Customer', array('controller' => 'addresses', 'action' => 'add_another',$next), array('update'=>'addresses'.$next));
?>
<div id="addresses<?php echo $next; ?>"></div>