+ = GridView::widget([
+ 'options' => ['class'=>'style admin-all-pages-wr'],
+ 'dataProvider' => $dataProvider,
+ 'filterModel' => $searchModel,
+ 'columns' => [
+ [
+ 'attribute' => 'project_id',
+ 'label' => 'ID',
+ ],
+ 'name',
+ [
+ 'attribute' => 'date_add',
+ 'filter' => "
".
- DatePicker::widget([
- 'model' => $searchModel,
- 'attribute' => 'date_add_from',
- 'language' => 'ru',
- 'dateFormat' => 'yyyy-MM-dd',
- 'clientOptions' => [
- 'changeYear' => true,
- 'changeMonth' => true,
- ],
- ]).
- "
+ DatePicker::widget([
+ 'model' => $searchModel,
+ 'attribute' => 'date_add_from',
+ 'language' => 'ru',
+ 'dateFormat' => 'yyyy-MM-dd',
+ 'clientOptions' => [
+ 'changeYear' => true,
+ 'changeMonth' => true,
+ ],
+ ]).
+ "
".
- DatePicker::widget([
- 'model' => $searchModel,
- 'attribute' => 'date_add_to',
- 'language' => 'ru',
- 'dateFormat' => 'yyyy-MM-dd',
- 'clientOptions' => [
- 'changeYear' => true,
- 'changeMonth' => true,
- ],
- ])
- ."
+ DatePicker::widget([
+ 'model' => $searchModel,
+ 'attribute' => 'date_add_to',
+ 'language' => 'ru',
+ 'dateFormat' => 'yyyy-MM-dd',
+ 'clientOptions' => [
+ 'changeYear' => true,
+ 'changeMonth' => true,
+ ],
+ ])
+ ."
",
- 'format' => 'html',
- ],
- 'budget',
- 'city',
- [
- 'attribute' => 'specializationString',
- ],
- 'view_count',
- [
- 'value' => function($model, $key, $index, $column) {
- return 0;
- },
- 'label' => 'Отклики',
- ],
- [
- 'class' => ActionColumn::className(),
- 'buttons' => [
- 'update' => function($url, $model, $key) {
- return Html::a('

', [
- 'projects-update',
- 'id' => $model->project_id,
- ],[
- 'title' => 'Редактировать',
- ]);
- },
- 'delete' => function($url, $model, $key) {
- return Html::a('

', [
- 'projects-delete',
- 'id' => $model->project_id,
- ], [
- 'title' => 'Удалить',
- 'aria-label' => 'Удалить',
- 'data-confirm' => 'Вы уверены, что хотите удалить этот элемент?',
- 'data-method' => 'post',
- 'data-pjax' => '0',
- ]);
+ 'format' => 'html',
+ ],
+ 'budget',
+ 'city',
+ [
+ 'attribute' => 'specializationString',
+ ],
+ 'view_count',
+ [
+ 'value' => function($model, $key, $index, $column) {
+ return 0;
},
+ 'label' => 'Отклики',
+ ],
+ [
+ 'class' => ActionColumn::className(),
+ 'buttons' => [
+ 'update' => function($url, $model, $key) {
+ return Html::a('

', [
+ 'projects-update',
+ 'id' => $model->project_id,
+ ],[
+ 'title' => 'Редактировать',
+ ]);
+ },
+ 'delete' => function($url, $model, $key) {
+ return Html::a('

', [
+ 'projects-delete',
+ 'id' => $model->project_id,
+ ], [
+ 'title' => 'Удалить',
+ 'aria-label' => 'Удалить',
+ 'data-confirm' => 'Вы уверены, что хотите удалить этот элемент?',
+ 'data-method' => 'post',
+ 'data-pjax' => '0',
+ ]);
+ },
+ ],
+ 'template' => '{update} {delete}',
],
- 'template' => '{update} {delete}',
],
- ],
-]); ?>
+ ]); ?>
+
+
diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php
index 3bcffc4..ff21df6 100755
--- a/frontend/views/layouts/main.php
+++ b/frontend/views/layouts/main.php
@@ -339,10 +339,10 @@ AppAsset::register($this);
'label' => 'Ad Choices',
'url' => [' ']
],
- [
- 'label' => 'Еще',
- 'url' => [' ']
- ],
+// [
+// 'label' => 'Еще',
+// 'url' => [' ']
+// ],
]
]);
?>
diff --git a/frontend/views/search/project.php b/frontend/views/search/project.php
index 3588d0e..e8749f9 100755
--- a/frontend/views/search/project.php
+++ b/frontend/views/search/project.php
@@ -81,15 +81,15 @@ $this->title = 'My Yii Application';