1 | <?php |
||
2 | |||
3 | use hipanel\modules\server\models\OsimageSearch; |
||
4 | use hipanel\widgets\AjaxModal; |
||
5 | use hipanel\widgets\IndexPage; |
||
6 | use hipanel\widgets\Pjax; |
||
7 | use yii\helpers\Html; |
||
8 | |||
9 | /** |
||
10 | * @var \yii\web\View |
||
11 | * @var OsimageSearch $osimages |
||
12 | * @var array $states |
||
13 | * @var \hipanel\modules\server\models\Change $model |
||
14 | */ |
||
15 | $this->title = Yii::t('hipanel:server', 'Pending confirmation servers'); |
||
16 | $this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? Yii::t('hipanel', 'filtered list') : Yii::t('hipanel', 'full list'); |
||
17 | $this->params['breadcrumbs'][] = ['label' => Yii::t('hipanel:server', 'Servers'), 'url' => ['index']]; |
||
18 | $this->params['breadcrumbs'][] = $this->title; |
||
19 | |||
20 | ?> |
||
21 | |||
22 | <?php Pjax::begin(array_merge(Yii::$app->params['pjax'], ['enablePushState' => true])) ?> |
||
23 | <?php $page = IndexPage::begin(compact('model', 'dataProvider')) ?> |
||
24 | <?= $page->setSearchFormData(compact(['states'])) ?> |
||
25 | <?php $page->beginContent('main-actions') ?> |
||
26 | <?php // TODO: add actions?> |
||
27 | <?php $page->endContent() ?> |
||
28 | |||
29 | <?php $page->beginContent('sorter-actions') ?> |
||
30 | <?= $page->renderSorter([ |
||
31 | 'attributes' => [ |
||
32 | 'client', |
||
33 | 'time', |
||
34 | ], |
||
35 | ]) ?> |
||
36 | <?php $page->endContent() ?> |
||
37 | |||
38 | <?php $page->beginContent('bulk-actions') ?> |
||
39 | <?php if ($model->state === $model::STATE_NEW) : ?> |
||
40 | <div> |
||
41 | <?= AjaxModal::widget([ |
||
42 | 'id' => 'bulk-approve-modal', |
||
43 | 'bulkPage' => true, |
||
44 | 'header'=> Html::tag('h4', Yii::t('hipanel:finance:change', 'Approve'), ['class' => 'modal-title']), |
||
45 | 'scenario' => 'approve', |
||
46 | 'actionUrl' => ['bulk-approve-modal'], |
||
47 | 'size' => AjaxModal::SIZE_LARGE, |
||
48 | 'handleSubmit' => false, |
||
49 | 'toggleButton' => [ |
||
50 | 'class' => 'btn btn-success btn-sm', |
||
51 | 'label' => Yii::t('hipanel:finance:change', 'Approve'), |
||
52 | ], |
||
53 | ]) ?> |
||
54 | <?= AjaxModal::widget([ |
||
55 | 'id' => 'bulk-reject-modal', |
||
56 | 'bulkPage' => true, |
||
57 | 'header'=> Html::tag('h4', Yii::t('hipanel:finance:change', 'Reject'), ['class' => 'modal-title ']), |
||
58 | 'scenario' => 'reject', |
||
59 | 'actionUrl' => ['bulk-reject-modal'], |
||
60 | 'size' => AjaxModal::SIZE_LARGE, |
||
61 | 'handleSubmit' => false, |
||
62 | 'toggleButton' => [ |
||
63 | 'class' => 'btn btn-danger btn-sm', |
||
64 | 'label' => Yii::t('hipanel:finance:change', 'Reject'), |
||
65 | ], |
||
66 | ]) ?> |
||
67 | </div> |
||
68 | <?php endif ?> |
||
69 | <?php if (Yii::$app->user->can('delete-bills')) : ?> |
||
0 ignored issues
–
show
|
|||
70 | <?= $page->renderBulkDeleteButton('delete') ?> |
||
71 | <?php endif ?> |
||
72 | <?php $page->endContent() ?> |
||
73 | |||
74 | <?php $page->beginContent('table') ?> |
||
75 | <?php $page->beginBulkForm() ?> |
||
76 | <?= \hipanel\modules\server\grid\PreOrderGridView::widget([ |
||
77 | 'dataProvider' => $dataProvider, |
||
78 | 'boxed' => false, |
||
79 | 'filterModel' => $model, |
||
80 | 'columns' => [ |
||
81 | 'checkbox', 'client', |
||
82 | 'user_comment', 'tech_comment', 'time', |
||
83 | ], |
||
84 | ]) ?> |
||
85 | <?php $page->endBulkForm() ?> |
||
86 | <?php $page->endContent() ?> |
||
87 | |||
88 | <?php $page->end() ?> |
||
89 | <?php Pjax::end() ?> |
||
90 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.