2009-01-12 21:13:18 -08:00
|
|
|
<div class="productOptions form">
|
|
|
|
|
<?php echo $form->create('ProductOption');?>
|
|
|
|
|
<fieldset>
|
2009-09-09 20:23:39 -07:00
|
|
|
|
|
|
|
|
<?php $product_link = $html->link(__($optcat['Product']['title'], true), array('controller'=>'products','action'=>'view',$optcat['Product']['id']));
|
|
|
|
|
$option = $html->link(__($optcat['ProductOptionsCategory']['name'],true), array('controller'=>'product_options_categories', 'action'=>'view', $optcat['ProductOptionsCategory']['id']));
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
<legend><?php __('Add New "'.$option.'" Option to: '.$product_link);?></legend>
|
2009-01-12 21:13:18 -08:00
|
|
|
<?php
|
2009-09-09 20:23:39 -07:00
|
|
|
echo $form->input('product_id', array('type'=>'hidden', 'value'=>$optcat['Product']['id']));
|
|
|
|
|
echo $form->input('product_options_category_id', array('type'=>'hidden', 'value'=>$optcat['ProductOptionsCategory']['id']));
|
2009-01-12 21:13:18 -08:00
|
|
|
echo $form->input('title');
|
|
|
|
|
echo $form->input('description');
|
2009-09-09 20:23:39 -07:00
|
|
|
echo $form->input('model_number');
|
2009-04-23 21:26:48 -07:00
|
|
|
echo $form->input('default');
|
|
|
|
|
echo $form->input('cost_price');
|
2009-02-26 16:58:33 -08:00
|
|
|
echo $form->input('exchange_rate');
|
2009-02-22 18:22:19 -08:00
|
|
|
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');
|
2009-02-26 16:58:33 -08:00
|
|
|
echo $form->input('customs');
|
|
|
|
|
echo $form->input('finance');
|
|
|
|
|
echo $form->input('misc_cost');
|
2009-04-23 21:26:48 -07:00
|
|
|
echo $form->input('sell_price');
|
2009-02-26 16:58:33 -08:00
|
|
|
echo $form->input('notes');
|
2009-01-12 21:13:18 -08:00
|
|
|
?>
|
|
|
|
|
</fieldset>
|
|
|
|
|
<?php echo $form->end('Submit');?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="actions">
|
|
|
|
|
<ul>
|
2009-09-09 20:23:39 -07:00
|
|
|
<li><?php echo $html->link(__('List ProductOptions', true), array('action' => 'index'));?></li>
|
|
|
|
|
<li><?php echo $html->link(__('List Products', true), array('controller' => 'products', 'action' => 'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Product', true), array('controller' => 'products', 'action' => 'add')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('List Product Options Categories', true), array('controller' => 'product_options_categories', 'action' => 'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Product Options Category', true), array('controller' => 'product_options_categories', 'action' => 'add')); ?> </li>
|
2009-01-12 21:13:18 -08:00
|
|
|
</ul>
|
|
|
|
|
</div>
|
2009-09-09 20:23:39 -07:00
|
|
|
|
|
|
|
|
<?php debug($optcat); ?>
|