Skip to content

Commit

Permalink
fix: namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
krissss committed Sep 27, 2018
1 parent c985ea6 commit db1a58b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion generators/crud/default/views/_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
echo $form->field($model, '<?=$attribute?>');
<?php endforeach; ?>

$form->end();
SimpleSearchForm::end();
4 changes: 1 addition & 3 deletions generators/dynagrid/default/views/_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@
echo $form->field($model, '<?=$attribute?>');
<?php endforeach; ?>

echo $form->renderFooterButtons();

$form->end();
SimpleSearchForm::end();
3 changes: 1 addition & 2 deletions modules/auth/views/role/create_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,4 @@
</div>
</div>
<?php
echo $form->renderFooterButtons();
$form->end();
SimpleActiveForm::end();
9 changes: 4 additions & 5 deletions modules/auth/views/role/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/* @var $dataProvider */

use kriss\modules\auth\Module;
use kriss\widgets\SimpleDynaGrid;
use yii\helpers\Html;
use kriss\modules\auth\tools\AuthValidate;

Expand All @@ -21,7 +22,8 @@
/*[
'attribute' => 'id',
'hAlign' => 'center',
],*/ [
],*/
[
'attribute' => 'name',
'hAlign' => 'center',
'enableSorting' => false,
Expand Down Expand Up @@ -71,8 +73,7 @@
],
];

$simpleDynaGrid = new \kriss\widgets\SimpleDynaGrid([
'dynaGridId' => 'dynagrid-auth-role-index',
echo SimpleDynaGrid::widget([
'columns' => $columns,
'dataProvider' => $dataProvider,
//'searchModel' => $searchModel,
Expand All @@ -85,5 +86,3 @@
],
],
]);
$simpleDynaGrid->renderDynaGrid();

2 changes: 1 addition & 1 deletion modules/auth/views/user-role/_update_role.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button type="submit" class="btn btn-primary">确认</button>
</div>
<?php $form->end(); ?>
<?php ActiveForm::end(); ?>
</div>
</div>
</div>
8 changes: 4 additions & 4 deletions widgets/ExportMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
use yii\base\Exception;
use yii\base\Widget;
use yii\data\BaseDataProvider;
use yii\grid\ActionColumn;
use yii\grid\CheckboxColumn;
use yii\grid\RadioButtonColumn;
use yii\grid\ActionColumn as YiiActionColumn;
use yii\grid\CheckboxColumn as YiiCheckboxColumn;
use yii\grid\RadioButtonColumn as YiiRadioButtonColumn;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii2tech\csvgrid\CsvGrid;
Expand All @@ -28,7 +28,7 @@ class ExportMenu extends Widget
public $columns = [];

public $skipColumnClass = [
ActionColumn::class, CheckboxColumn::class, RadioButtonColumn::class,
YiiActionColumn::class, YiiCheckboxColumn::class, YiiRadioButtonColumn::class,
];

public $batchSize = 200;
Expand Down

0 comments on commit db1a58b

Please sign in to comment.