cmc-sales/php/app/views/products/add.ctp

47 lines
1.5 KiB
Plaintext
Raw Normal View History

<? echo $javascript->link('ckeditor/ckeditor');
echo $javascript->link('ckeditor/adapters/jquery');
?>
<script type="text/javascript">
$('.ckeditor').ckeditor(config);
</script>
2010-02-16 19:34:17 -08:00
<div class="addproduct">
<?php echo $form->create('Product', array('id'=>'productaddform', 'class'=>'addproduct'));?>
<fieldset>
<legend><?php __('Add Product');?></legend>
<?php
2010-01-10 10:05:04 -08:00
echo $form->input('principle_id', array('empty' => 'Choose a Principle'));
2009-11-15 19:31:10 -08:00
echo $form->input('title', array('class' => 'required', 'title'=>'Please Enter the Title for the Product'));
2009-10-06 03:29:00 -07:00
echo $form->input('description', array('id' => 'description', 'class'=>'ckeditor'));
2011-11-13 18:40:06 -08:00
echo $form->input('item_code');
echo $form->input('item_description');
echo $form->input('notes');
2009-11-15 19:31:10 -08:00
2010-02-16 19:34:17 -08:00
?>
</fieldset>
2009-11-15 19:31:10 -08:00
<?php echo $form->end(array('label' => 'Add Product'));
2010-02-16 19:34:17 -08:00
2009-11-15 19:31:10 -08:00
?>
</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>