eb7e82fb
Administrator
29.02.16
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
</div>
<div class="admin-table-portfolio">
<?= GridView::widget([
'options' => ['class'=>'style admin-all-pages-wr'],
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
[
'attribute' => 'portfolio_id',
'label' => 'ID',
],
'name',
[
'attribute' => 'date_add',
'filter' => "<div class=\"input-group input-group-xs input-daterange\">
<span class='field-teamsearch-experience_from_from'>".
DatePicker::widget([
'model' => $searchModel,
'attribute' => 'date_add_from',
'language' => 'ru',
'dateFormat' => 'yyyy-MM-dd',
'clientOptions' => [
'changeYear' => true,
'changeMonth' => true,
],
]).
"</span>
<span class=\"input-group-addon kv-field-separator\">
<i class=\"glyphicon glyphicon-resize-horizontal\"></i>
</span>
<span class='field-teamsearch-experience_from_to'>".
DatePicker::widget([
'model' => $searchModel,
'attribute' => 'date_add_to',
'language' => 'ru',
'dateFormat' => 'yyyy-MM-dd',
'clientOptions' => [
'changeYear' => true,
'changeMonth' => true,
],
])
."</span>
</div>",
'format' => 'html',
],
'view_count',
[
'value' => function($model, $key, $index, $column) {
return 0;
},
'label' => 'Рейтинг',
],
[
'value' => function($model, $key, $index, $column) {
return 0;
},
'label' => 'Комментарии',
],
[
'attribute' => 'specializationString',
],
[
'class' => ActionColumn::className(),
'buttons' => [
'update' => function($url, $model, $key) {
return Html::a('<img src="/images/ico_pencil.png" alt="">', [
'portfolio-update',
'id' => $model->portfolio_id,
],[
'title' => 'Редактировать',
]);
},
'delete' => function($url, $model, $key) {
return Html::a('<img src="/images/delete-ico.png" alt="">', [
'portfolio-delete',
'id' => $model->portfolio_id,
], [
|