| 13532 |
anikendra |
1 |
<div class="container">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-3">
|
|
|
4 |
<ul class="list-unstyled">
|
|
|
5 |
<li><?php echo $this->Html->link(__('List Products'), array('action' => 'index')); ?></li>
|
|
|
6 |
<li><?php echo $this->Html->link(__('List Categories'), array('controller' => 'categories', 'action' => 'index')); ?> </li>
|
|
|
7 |
|
|
|
8 |
</div>
|
|
|
9 |
<div class="col-lg-9">
|
|
|
10 |
<?php echo $this->Form->create('Product'); ?>
|
|
|
11 |
<fieldset>
|
|
|
12 |
<legend><?php echo __('Admin Edit Product'); ?></legend>
|
|
|
13 |
<?php
|
|
|
14 |
echo $this->Form->input('id');
|
|
|
15 |
echo $this->Form->input('name');
|
|
|
16 |
echo $this->Form->input('category_id');
|
|
|
17 |
echo $this->Form->input('tag_line');
|
|
|
18 |
?>
|
|
|
19 |
</fieldset>
|
|
|
20 |
<?php echo $this->Form->end(__('Submit')); ?>
|
|
|
21 |
</div>
|
|
|
22 |
<?php if(!empty($this->request->data['StoreProduct'])):?>
|
|
|
23 |
<?php foreach($this->request->data['StoreProduct'] AS $product):?>
|
|
|
24 |
<div class="col-lg-3">
|
|
|
25 |
<img class="img img-responsive" src="<?php echo $product['img_url'];?>"/>
|
|
|
26 |
<?php echo $this->Html->link(__('Edit'), array('controller' => 'store_products', 'action' => 'edit',$product['id'])); ?>
|
|
|
27 |
</div>
|
|
|
28 |
<?php endforeach;?>
|
|
|
29 |
<?php endif;?>
|
|
|
30 |
</div>
|
|
|
31 |
</div>
|
|
|
32 |
</div>
|