2009-02-22 18:22:19 -08:00
|
|
|
<?php echo $javascript->link('quotenik/product_buildup.js', false); ?>
|
2009-04-23 18:21:22 -07:00
|
|
|
|
2009-02-22 18:22:19 -08:00
|
|
|
<div class="addproduct">
|
|
|
|
|
<?php echo $form->create('Product', array('id'=>'productaddform', 'class'=>'addproduct'));?>
|
2009-01-12 21:13:18 -08:00
|
|
|
<fieldset>
|
|
|
|
|
<legend><?php __('Add Product');?></legend>
|
|
|
|
|
<?php
|
|
|
|
|
echo $form->input('principle_id');
|
|
|
|
|
echo $form->input('title');
|
2009-08-13 19:09:47 -07:00
|
|
|
|
2009-07-15 22:51:40 -07:00
|
|
|
echo "<div class=\"input text\">";
|
|
|
|
|
echo "<label for=\"data[Product][description\">Description</label>";
|
|
|
|
|
echo $fck->fckeditor(array('Product', 'description'), '');
|
|
|
|
|
echo "</div>";
|
2009-08-13 19:09:47 -07:00
|
|
|
|
|
|
|
|
//echo $form->input('description');
|
2009-02-22 18:22:19 -08:00
|
|
|
echo $form->input('part_number');
|
2009-03-26 18:26:36 -07:00
|
|
|
echo $form->input('product_category_id');
|
|
|
|
|
echo $ajax->link('Enter Costing Info', array('controller'=> 'products', 'action' => 'add_costing'), array( 'update' => 'costingdetails'));
|
|
|
|
|
echo '<div id="costingdetails">';
|
2009-02-22 18:22:19 -08:00
|
|
|
echo '</div>';
|
|
|
|
|
echo $form->input('notes');
|
2009-04-23 18:21:22 -07:00
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
?>
|
|
|
|
|
</fieldset>
|
|
|
|
|
<?php echo $form->end('Submit');?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="actions">
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link(__('List Products', true), array('action'=>'index'));?></li>
|
|
|
|
|
<li><?php echo $html->link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('List Product Options', true), array('controller'=> 'product_options', 'action'=>'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Product Option', true), array('controller'=> 'product_options', 'action'=>'add')); ?> </li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|