예제 #1
0
파일: _form.php 프로젝트: yupe/yupe
        ?>
" alt="" class="img-responsive"/>
                                </td>
                                <td>
                                    <?php 
        echo CHtml::textField('ProductImage[' . $image->id . '][title]', $image->title, ['class' => 'form-control']);
        ?>
                                </td>
                                <td>
                                    <?php 
        echo CHtml::textField('ProductImage[' . $image->id . '][alt]', $image->alt, ['class' => 'form-control']);
        ?>
                                </td>
                                <td>
                                    <?php 
        echo CHtml::dropDownList('ProductImage[' . $image->id . '][group_id]', $image->group_id, ImageGroupHelper::all(), ['empty' => Yii::t('StoreModule.store', '--choose--'), 'class' => 'form-control image-group-dropdown']);
        ?>
                                </td>
                                <td class="text-center">
                                    <a data-id="<?php 
        echo $image->id;
        ?>
" href="<?php 
        echo Yii::app()->createUrl('/store/productBackend/deleteImage', ['id' => $image->id]);
        ?>
" class="btn btn-default product-delete-image"><i
                                            class="fa fa-fw fa-trash-o"></i></a>
                                </td>
                            </tr>
                        <?php 
    }
예제 #2
0
 public function actionData()
 {
     Yii::app()->ajax->success(ImageGroupHelper::all());
 }