31 lines
1.4 KiB
PHP
Executable file
31 lines
1.4 KiB
PHP
Executable file
<?php echo $javascript->link('quotenik/product_buildup.js', false); ?>
|
|
<div class="addproduct">
|
|
<?php echo $form->create('Product', array('id'=>'productaddform', 'class'=>'addproduct'));?>
|
|
<fieldset>
|
|
<legend><?php __('Add Product');?></legend>
|
|
<?php
|
|
echo $form->input('principle_id');
|
|
|
|
echo $form->input('title');
|
|
echo $form->input('description', array('class'=>'wymeditor'));
|
|
echo $form->input('part_number');
|
|
echo $form->input('product_category_id');
|
|
echo $ajax->link('Show Costing Info', array('controller'=> 'products', 'action' => 'add_costing'), array( 'update' => 'costingdetails'));
|
|
echo '<div id="costingdetails">';
|
|
echo '</div>';
|
|
echo $form->input('notes');
|
|
|
|
?>
|
|
</fieldset>
|
|
<?php echo $form->end(array('label' => 'Add Product', 'class'=>'wymupdate'));?>
|
|
</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>
|