<div class="productOptions form">
<?php echo $form->create('ProductOption');?>
	<fieldset>

<?php $product_link = $html->link(__($optcat['Product']['title'], true), array('controller'=>'products','action'=>'view',$optcat['Product']['id'])); 
		$option = $html->link(__($optcat['ProductOptionsCategory']['name'],true), array('controller'=>'product_options_categories', 'action'=>'view', $optcat['ProductOptionsCategory']['id']));

?>
 		<legend><?php __('Add New "'.$option.'" Option to: '.$product_link);?></legend>
	<?php
		echo $form->input('product_id', array('type'=>'hidden', 'value'=>$optcat['Product']['id']));
		echo $form->input('product_options_category_id', array('type'=>'hidden', 'value'=>$optcat['ProductOptionsCategory']['id']));
		echo $form->input('title');
		echo $form->input('description');
		echo $form->input('model_number');
		echo $form->input('default');
		echo $form->input('notes');
	?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('List ProductOptions', true), array('action' => 'index'));?></li>
		<li><?php echo $html->link(__('List Products', true), array('controller' => 'products', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Product', true), array('controller' => 'products', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Product Options Categories', true), array('controller' => 'product_options_categories', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Product Options Category', true), array('controller' => 'product_options_categories', 'action' => 'add')); ?> </li>
	</ul>
</div>

<?php debug($optcat); ?>
