Commit d96878c5591be8c4134e2c1ecacccb342bbed131
1 parent
8ceca3a7
main admin
Showing
2 changed files
with
30 additions
and
0 deletions
Show diff stats
models/Product.php
@@ -37,6 +37,9 @@ | @@ -37,6 +37,9 @@ | ||
37 | * @property boolean $is_top | 37 | * @property boolean $is_top |
38 | * @property boolean $is_new | 38 | * @property boolean $is_new |
39 | * @property boolean $is_discount | 39 | * @property boolean $is_discount |
40 | + * @property boolean $is_top_main | ||
41 | + * @property boolean $is_new_main | ||
42 | + * @property boolean $is_discount_main | ||
40 | * @property TaxGroup[] $properties | 43 | * @property TaxGroup[] $properties |
41 | * @property ProductVariant $enabledVariant | 44 | * @property ProductVariant $enabledVariant |
42 | * @property ProductVariant[] $enabledVariants | 45 | * @property ProductVariant[] $enabledVariants |
views/manage/view.php
@@ -118,6 +118,33 @@ | @@ -118,6 +118,33 @@ | ||
118 | 'format' => 'html', | 118 | 'format' => 'html', |
119 | ], | 119 | ], |
120 | [ | 120 | [ |
121 | + 'attribute' => 'is_top_main', | ||
122 | + 'value' => $model->is_top_main ? Html::tag( | ||
123 | + 'span', | ||
124 | + '', | ||
125 | + [ 'class' => 'glyphicon glyphicon-ok' ] | ||
126 | + ) : Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-remove' ]), | ||
127 | + 'format' => 'html', | ||
128 | + ], | ||
129 | + [ | ||
130 | + 'attribute' => 'is_new_main', | ||
131 | + 'value' => $model->is_new_main ? Html::tag( | ||
132 | + 'span', | ||
133 | + '', | ||
134 | + [ 'class' => 'glyphicon glyphicon-ok' ] | ||
135 | + ) : Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-remove' ]), | ||
136 | + 'format' => 'html', | ||
137 | + ], | ||
138 | + [ | ||
139 | + 'attribute' => 'is_discount_main', | ||
140 | + 'value' => $model->is_discount_main ? Html::tag( | ||
141 | + 'span', | ||
142 | + '', | ||
143 | + [ 'class' => 'glyphicon glyphicon-ok' ] | ||
144 | + ) : Html::tag('span', '', [ 'class' => 'glyphicon glyphicon-remove' ]), | ||
145 | + 'format' => 'html', | ||
146 | + ], | ||
147 | + [ | ||
121 | 'attribute' => 'video', | 148 | 'attribute' => 'video', |
122 | 'format' => 'html', | 149 | 'format' => 'html', |
123 | ], | 150 | ], |