cmc-sales/app/views/industries/add.ctp

39 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2009-07-02 18:11:22 -07:00
<div class="industries form">
<?php echo $form->create('Industry');?>
<fieldset>
2009-07-09 00:09:59 -07:00
<legend><?php
if(!isset($parent)) {
__('Add Industry');
}
else {
__('Add Sub-Industry to: '.$parent['Industry']['name']);
}
?></legend>
2009-07-02 18:11:22 -07:00
<?php
echo $form->input('name');
2009-07-09 00:09:59 -07:00
if(!isset($parent)) {
echo $form->input('parent_id', array('type'=>'hidden', 'value' => 0));
echo $form->input('sub_category', array('label'=>'Name of the first Sub-Industry to this new Industry'));
2009-07-09 00:09:59 -07:00
}
else {
echo $form->input('parent_id', array('type'=>'hidden', 'value' => $parent['Industry']['id']));
}
?>
2009-07-02 18:11:22 -07:00
</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
<ul>
<li><?php echo $html->link(__('List Industries', true), array('action'=>'index'));?></li>
<li><?php echo $html->link(__('List Industries', true), array('controller'=> 'industries', 'action'=>'index')); ?> </li>
<li><?php echo $html->link(__('New Parent Industry', true), array('controller'=> 'industries', '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>
</ul>
</div>