diff --git a/models/Product.php b/models/Product.php index d7051ca..7ff8fb5 100755 --- a/models/Product.php +++ b/models/Product.php @@ -37,6 +37,9 @@ * @property boolean $is_top * @property boolean $is_new * @property boolean $is_discount + * @property boolean $is_top_main + * @property boolean $is_new_main + * @property boolean $is_discount_main * @property TaxGroup[] $properties * @property ProductVariant $enabledVariant * @property ProductVariant[] $enabledVariants diff --git a/views/manage/view.php b/views/manage/view.php index c016ec9..f1d7976 100755 --- a/views/manage/view.php +++ b/views/manage/view.php @@ -118,6 +118,33 @@ 'format' => 'html', ], [ + 'attribute' => 'is_top_main', + 'value' => $model->is_top_main ? Html::tag( + 'span', + '', + [ 'class' => 'glyphicon glyphicon-ok' ] + ) : Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-remove' ]), + 'format' => 'html', + ], + [ + 'attribute' => 'is_new_main', + 'value' => $model->is_new_main ? Html::tag( + 'span', + '', + [ 'class' => 'glyphicon glyphicon-ok' ] + ) : Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-remove' ]), + 'format' => 'html', + ], + [ + 'attribute' => 'is_discount_main', + 'value' => $model->is_discount_main ? Html::tag( + 'span', + '', + [ 'class' => 'glyphicon glyphicon-ok' ] + ) : Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-remove' ]), + 'format' => 'html', + ], + [ 'attribute' => 'video', 'format' => 'html', ], -- libgit2 0.21.4