d8c1a2e0
Yarik
Big commit artbox
|
1
|
<?php
|
93c267f7
Yarik
Multilanguage big...
|
2
|
|
6fdc7b5a
Yarik
Another one admin...
|
3
4
|
use common\modules\product\models\ProductUnitSearch;
use yii\data\ActiveDataProvider;
|
93c267f7
Yarik
Multilanguage big...
|
5
6
|
use yii\helpers\Html;
use yii\grid\GridView;
|
6fdc7b5a
Yarik
Another one admin...
|
7
|
use yii\web\View;
|
93c267f7
Yarik
Multilanguage big...
|
8
|
|
6fdc7b5a
Yarik
Another one admin...
|
9
10
11
12
13
|
/**
* @var View $this
* @var ProductUnitSearch $searchModel
* @var ActiveDataProvider $dataProvider
*/
|
93c267f7
Yarik
Multilanguage big...
|
14
15
16
|
$this->title = Yii::t('product', 'Product Units');
$this->params[ 'breadcrumbs' ][] = $this->title;
|
d8c1a2e0
Yarik
Big commit artbox
|
17
18
|
?>
<div class="product-unit-index">
|
93c267f7
Yarik
Multilanguage big...
|
19
|
|
d8c1a2e0
Yarik
Big commit artbox
|
20
|
<h1><?= Html::encode($this->title) ?></h1>
|
93c267f7
Yarik
Multilanguage big...
|
21
|
|
d8c1a2e0
Yarik
Big commit artbox
|
22
|
<p>
|
93c267f7
Yarik
Multilanguage big...
|
23
|
<?= Html::a(Yii::t('product', 'Create Product Unit'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
|
d8c1a2e0
Yarik
Big commit artbox
|
24
25
26
|
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
|
93c267f7
Yarik
Multilanguage big...
|
27
28
|
'filterModel' => $searchModel,
'columns' => [
|
93c267f7
Yarik
Multilanguage big...
|
29
|
'product_unit_id',
|
6fdc7b5a
Yarik
Another one admin...
|
30
31
32
33
34
35
36
37
38
39
|
[
'attribute' => 'is_default',
'format' => 'boolean',
'filter' => [\Yii::$app->formatter->asBoolean(false), \Yii::$app->formatter->asBoolean(true)],
],
[
'attribute' => 'name',
'value' => 'lang.name',
],
'lang.short',
|
93c267f7
Yarik
Multilanguage big...
|
40
|
[ 'class' => 'yii\grid\ActionColumn' ],
|
d8c1a2e0
Yarik
Big commit artbox
|
41
42
43
|
],
]); ?>
</div>
|