<div class="industries form">
<?php echo $form->create('Industry');?>
	<fieldset>
		<legend><?php 

if(!isset($parent)) {
	__('Add Industry');
}

else {
	__('Add Sub-Industry to: '.$parent['Industry']['name']);
}
?></legend>
	<?php
		echo $form->input('name');

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'));
}
else {
		echo $form->input('parent_id', array('type'=>'hidden', 'value' => $parent['Industry']['id']));
}

?>
	</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>

