46 lines
1.8 KiB
PHP
Executable file
46 lines
1.8 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', array('empty' => 'Choose a Principle'));
|
|
|
|
echo $form->input('title', array('class' => 'required', 'title'=>'Please Enter the Title for the Product'));
|
|
echo $form->input('description', array('id' => 'description', 'class'=>'ckeditor'));
|
|
|
|
echo $form->input('part_number');
|
|
|
|
echo $form->input('notes');
|
|
|
|
echo $html->link('Show/Hide Costing Details', '#', array('onClick' => "Effect.toggle('costingdetails', 'appear'); return false;"));
|
|
echo $html->image('calculator.png');
|
|
echo $ajax->div('costingdetails');
|
|
|
|
//echo $this->e
|
|
//lement('product_costing', array('modelName' => 'Product'));
|
|
|
|
echo $ajax->divEnd('costingdetails');
|
|
|
|
|
|
|
|
|
|
?>
|
|
</fieldset>
|
|
<?php echo $form->end(array('label' => 'Add Product'));
|
|
echo $javascript->codeBlock("new Validation('productaddform', {immediate : true, useTitles : true});", array('allowCache'=>true, 'safe'=>false));
|
|
|
|
?>
|
|
|
|
|
|
</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>
|