
<?=$form->input('product_search', array('label'=>'Search Product title', 'id'=>'productSearch'));?>

<button id="productSearchButton">Search</button>
<ul id="productList"></ul>

<? echo $form->input('Product.principle_id', array('id'=>'principleSelect', 'label'=>'Principle','empty'=>'Select Principle'));?>





<div id="productsDiv"></div>
<div id="productDetails"></div>
<br><br>

<div id="lineItemDetails">
    <?
    echo $form->create('LineItem', array('default'=>false));
    echo $form->input('LineItem.id');
    echo $form->input('LineItem.document_id', array('type'=>'hidden', 'value'=>$document['Document']['id']));
    echo $form->input('LineItem.item_number', array('class'=>'number_input'));
    echo $form->input('LineItem.option', array('type'=>'select','options'=>$yesNo));
    echo $form->input('LineItem.quantity', array('class'=>'number_input quickpricing'));
    echo $form->input('LineItem.title');
    echo $form->input('LineItem.description');
    echo $form->input('LineItem.product_id', array('type'=>'hidden'));
    echo $form->input('LineItem.has_text_prices', array('options' => array('1' => 'Yes', '0' => 'No')));
    ?>
    <div id="noCosting">
	<?
	echo $form->input('gross_unit_price', array('class'=>'number_input quickpricing'));
	echo $form->input('discount_percent', array('class'=>'number_input quickpricing'));
	echo $form->input('discount_amount_unit', array('class'=>'number_input quickpricing'));
	echo $form->input('net_unit_price', array('class'=>'number_input quickpricing'));
	echo $form->input('gross_price', array('class'=>'number_input quickpricing'));
	echo $form->input('discount_amount_total', array('class'=>'number_input quickpricing'));
	echo $form->input('net_price', array('class'=>'number_input quickpricing'));
	?>
    </div>

    <div id="textPrices">
	<?
	echo $form->input('unit_price_string');
	echo $form->input('gross_price_string');
	?>
    </div>

    <?
    echo $form->end();
    ?>

</div>

