2009-01-12 21:13:18 -08:00
|
|
|
<div class="addresses view">
|
|
|
|
|
<h2><?php __('Address');?></h2>
|
|
|
|
|
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
2009-07-12 23:55:17 -07:00
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $address['Address']['address']; ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('City'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $address['Address']['city']; ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
2009-07-12 23:55:17 -07:00
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('State'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $html->link($address['State']['name'], array('controller'=> 'states', 'action'=>'view', $address['State']['id'])); ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
2009-07-12 23:55:17 -07:00
|
|
|
|
|
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Post Code'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $address['Address']['postcode']; ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Country'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $html->link($address['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $address['Country']['id'])); ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Customer'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $html->link($address['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $address['Customer']['id'])); ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Type'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $address['Address']['type']; ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
</dl>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="actions">
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link(__('Edit Address', true), array('action'=>'edit', $address['Address']['id'])); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('Delete Address', true), array('action'=>'delete', $address['Address']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $address['Address']['id'])); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('List Addresses', true), array('action'=>'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Address', true), array('action'=>'add')); ?> </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>
|