54 lines
2.2 KiB
PHP
Executable file
54 lines
2.2 KiB
PHP
Executable file
<div class="states view">
|
|
<h2><?php __('State');?></h2>
|
|
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $state['State']['id']; ?>
|
|
|
|
</dd>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $state['State']['name']; ?>
|
|
|
|
</dd>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Shortform'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $state['State']['shortform']; ?>
|
|
|
|
</dd>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Enqform'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $state['State']['enqform']; ?>
|
|
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $html->link(__('Edit State', true), array('action'=>'edit', $state['State']['id'])); ?> </li>
|
|
<li><?php echo $html->link(__('Delete State', true), array('action'=>'delete', $state['State']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $state['State']['id'])); ?> </li>
|
|
<li><?php echo $html->link(__('List States', true), array('action'=>'index')); ?> </li>
|
|
<li><?php echo $html->link(__('New State', true), array('action'=>'add')); ?> </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>
|
|
|
|
<div class="related">
|
|
<h3><?php __('Related Enquiries');?></h3>
|
|
<?php if (!empty($state['Enquiry'])) {
|
|
echo $this->element('enquiry_table', $enquiries);
|
|
}
|
|
else {
|
|
echo "No Enquiries from this State";
|
|
}
|
|
?>
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $html->link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add'));?> </li>
|
|
</ul>
|
|
</div>
|
|
</div>
|