cmc-sales/views/products/add.ctp

40 lines
1.6 KiB
Plaintext
Raw Normal View History

<?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');
2009-10-06 03:29:00 -07:00
echo $form->input('description', array('id' => 'description', 'class'=>'ckeditor'));
//echo $javascript->codeBlock("CKEDITOR.replace('description');");
echo $form->input('part_number');
echo $form->input('product_category_id');
echo $form->input('notes');
2009-04-23 18:21:22 -07:00
2009-10-06 03:29:00 -07:00
//echo $html->link('Show/Hide Costing Details', '#', array('onClick' => "Effect.toggle('costingdetails', 'appear'); return false;"));
echo $html->image('calculator.png');
2009-10-06 03:29:00 -07:00
//echo $ajax->div('costingdetails');
2009-10-06 03:29:00 -07:00
//echo $this->element('product_costing', array('modelName' => 'Product'));
2009-10-06 03:29:00 -07:00
//echo $ajax->divEnd('costingdetails');
?>
</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>