Added CKeditor to Add Product. So, everyone should STOP pasting Word generated HTML into the database and breaking the PDF formatting.
When adding Spec, if you want it to format properly the Paste From Word feature MUST BE USED Closes #46
This commit is contained in:
parent
c269417509
commit
e6b203090d
|
|
@ -1,3 +1,11 @@
|
|||
<? echo $javascript->link('ckeditor/ckeditor');
|
||||
echo $javascript->link('ckeditor/adapters/jquery');
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$('.ckeditor').ckeditor(config);
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<div class="addproduct">
|
||||
<?php echo $form->create('Product', array('id'=>'productaddform', 'class'=>'addproduct'));?>
|
||||
|
|
@ -9,8 +17,6 @@
|
|||
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');
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -14,17 +14,6 @@ echo $javascript->link('edit_product');
|
|||
echo $form->input('title');
|
||||
|
||||
echo $form->input('description');
|
||||
|
||||
|
||||
echo $form->input('model_number');
|
||||
echo $form->input('model_number_format');
|
||||
echo $form->input('cost_price_each');
|
||||
echo $form->input('our_discount');
|
||||
echo $form->input('packing_each');
|
||||
echo $form->input('shipping_weight_each');
|
||||
echo $form->input('shipping_cost_each');
|
||||
echo $form->input('duty');
|
||||
echo $form->input('sellprice_each');
|
||||
echo $form->input('notes');
|
||||
?>
|
||||
</fieldset>
|
||||
|
|
|
|||
Loading…
Reference in a new issue