Commit 0901f7752956e5a086d84d999a18c838fd2a4be4

Authored by Yarik
1 parent c8963ce0

Clean up

views/blog-article/_search.php
1 <?php 1 <?php
2 2
  3 + use artbox\weblog\models\ArticleSearch;
3 use yii\helpers\Html; 4 use yii\helpers\Html;
4 use yii\widgets\ActiveForm; 5 use yii\widgets\ActiveForm;
5 6
6 /* @var $this yii\web\View */ 7 /* @var $this yii\web\View */
7 - /* @var $model artweb\artbox\blog\models\BlogArticleSearch */ 8 + /* @var $model ArticleSearch */
8 /* @var $form yii\widgets\ActiveForm */ 9 /* @var $form yii\widgets\ActiveForm */
9 ?> 10 ?>
10 11
@@ -32,11 +33,11 @@ @@ -32,11 +33,11 @@
32 <?php // echo $form->field($model, 'status')->checkbox() ?> 33 <?php // echo $form->field($model, 'status')->checkbox() ?>
33 34
34 <?php // echo $form->field($model, 'author_id') ?> 35 <?php // echo $form->field($model, 'author_id') ?>
35 -  
36 - <div class="form-group">  
37 - <?= Html::submitButton('Search', [ 'class' => 'btn btn-primary' ]) ?>  
38 - <?= Html::resetButton('Reset', [ 'class' => 'btn btn-default' ]) ?>  
39 - </div> 36 +
  37 + <div class="form-group">
  38 + <?= Html::submitButton('Search', [ 'class' => 'btn btn-primary' ]) ?>
  39 + <?= Html::resetButton('Reset', [ 'class' => 'btn btn-default' ]) ?>
  40 + </div>
40 41
41 <?php ActiveForm::end(); ?> 42 <?php ActiveForm::end(); ?>
42 43
views/blog-category/_search.php
1 <?php 1 <?php
2 -  
3 -use yii\helpers\Html;  
4 -use yii\widgets\ActiveForm;  
5 -  
6 -/* @var $this yii\web\View */  
7 -/* @var $model artweb\artbox\blog\models\BlogCategorySearch */  
8 -/* @var $form yii\widgets\ActiveForm */ 2 +
  3 + use yii\helpers\Html;
  4 + use yii\widgets\ActiveForm;
  5 +
  6 + /* @var $this yii\web\View */
  7 + /* @var $model \artbox\weblog\models\CategorySearch */
  8 + /* @var $form yii\widgets\ActiveForm */
9 ?> 9 ?>
10 10
11 <div class="blog-category-search"> 11 <div class="blog-category-search">
12 -  
13 - <?php $form = ActiveForm::begin([  
14 - 'action' => ['index'],  
15 - 'method' => 'get',  
16 - ]); ?>  
17 - 12 +
  13 + <?php $form = ActiveForm::begin(
  14 + [
  15 + 'action' => [ 'index' ],
  16 + 'method' => 'get',
  17 + ]
  18 + ); ?>
  19 +
18 <?= $form->field($model, 'id') ?> 20 <?= $form->field($model, 'id') ?>
19 - 21 +
20 <?= $form->field($model, 'sort') ?> 22 <?= $form->field($model, 'sort') ?>
21 - 23 +
22 <?= $form->field($model, 'image') ?> 24 <?= $form->field($model, 'image') ?>
23 - 25 +
24 <?= $form->field($model, 'parent_id') ?> 26 <?= $form->field($model, 'parent_id') ?>
25 -  
26 - <?= $form->field($model, 'status')->checkbox() ?>  
27 -  
28 - <div class="form-group">  
29 - <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>  
30 - <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>  
31 - </div>  
32 - 27 +
  28 + <?= $form->field($model, 'status')
  29 + ->checkbox() ?>
  30 +
  31 + <div class="form-group">
  32 + <?= Html::submitButton('Search', [ 'class' => 'btn btn-primary' ]) ?>
  33 + <?= Html::resetButton('Reset', [ 'class' => 'btn btn-default' ]) ?>
  34 + </div>
  35 +
33 <?php ActiveForm::end(); ?> 36 <?php ActiveForm::end(); ?>
34 37
35 </div> 38 </div>
views/blog-tag/_search.php
@@ -4,7 +4,7 @@ use yii\helpers\Html; @@ -4,7 +4,7 @@ use yii\helpers\Html;
4 use yii\widgets\ActiveForm; 4 use yii\widgets\ActiveForm;
5 5
6 /* @var $this yii\web\View */ 6 /* @var $this yii\web\View */
7 -/* @var $model artweb\artbox\blog\models\BlogTagSearch */ 7 + /* @var $model \artbox\weblog\models\TagSearch */
8 /* @var $form yii\widgets\ActiveForm */ 8 /* @var $form yii\widgets\ActiveForm */
9 ?> 9 ?>
10 10