2009-01-12 21:13:18 -08:00
|
|
|
<div class="addresses form">
|
|
|
|
|
<?php echo $form->create('Address');?>
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend><?php __('Edit Address for Customer: '.$customer['Customer']['name']);?></legend>
|
|
|
|
|
<?php
|
|
|
|
|
echo $form->input('id');
|
|
|
|
|
echo $form->input('address');
|
|
|
|
|
echo $form->input('city');
|
2009-02-09 21:39:26 -08:00
|
|
|
echo $form->input('postcode');
|
2009-01-12 21:13:18 -08:00
|
|
|
echo $form->input('state_id');
|
|
|
|
|
echo $form->input('country_id');
|
2009-02-09 21:39:26 -08:00
|
|
|
echo $form->input('customer_id', array('type' => 'hidden', 'value' => $customer['Customer']['id']));
|
2009-01-12 21:13:18 -08:00
|
|
|
echo $form->input('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 Addresses', 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 States', true), array('controller'=> 'states', 'action'=>'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New State', true), array('controller'=> 'states', 'action'=>'add')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?> </li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|