Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<div class="container">
        <div class="row">
                <div class="col-lg-3">
                        <ul class="list-unstyled">
                                <li><?php echo $this->Html->link(__('List Products'), array('action' => 'index')); ?></li>
                                <li><?php echo $this->Html->link(__('List Categories'), array('controller' => 'categories', 'action' => 'index')); ?> </li>

                </div>
                <div class="col-lg-9">
                        <?php echo $this->Form->create('Product'); ?>
                                <fieldset>
                                        <legend><?php echo __('Admin Edit Product'); ?></legend>
                                <?php
                                        echo $this->Form->input('id');
                                        echo $this->Form->input('name');
                                        echo $this->Form->input('category_id');
                                        echo $this->Form->input('tag_line');
                                ?>
                                </fieldset>
                        <?php echo $this->Form->end(__('Submit')); ?>
                        </div>
                        <?php if(!empty($this->request->data['StoreProduct'])):?>
                        <?php foreach($this->request->data['StoreProduct'] AS $product):?>
                        <div class="col-lg-3">
                                <img class="img img-responsive" src="<?php echo $product['img_url'];?>"/>
                                <?php echo $this->Html->link(__('Edit'), array('controller' => 'store_products', 'action' => 'edit',$product['id'])); ?>
                        </div>
                        <?php endforeach;?>
                        <?php endif;?>
                </div>
        </div>
</div>