/** * Lists all RgnSubdistrict models. * @return mixed */ public function actionDeleted() { if (RgnSubdistrictAccess::allowDeleted() == FALSE) { throw RgnSubdistrictAccess::exception('deleted'); } $searchModel = new RgnSubdistrictSearch(); $dataProvider = $searchModel->searchDeleted($_GET); Tabs::clearLocalStorage(); Url::remember(); \Yii::$app->session['__crudReturnUrl'] = null; return $this->render('deleted', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]); }
* @var yii\widgets\ActiveForm $form */ ?> <div class="rgn-subdistrict-search"> <?php $form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']); ?> <?php echo $form->field($model, 'id'); ?> <?php echo $form->field($model, 'status')->dropDownList(RgnSubdistrictSearch::optsstatus()); ?> <?php echo $form->field($model, 'number'); ?> <?php echo $form->field($model, 'name'); ?> <?php echo $form->field($model, 'district_id')->widget(DepDrop::classname(), ['data' => [], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['multiple' => FALSE, 'allowClear' => TRUE, 'tags' => TRUE, 'maximumInputLength' => 255]], 'pluginOptions' => ['initialize' => TRUE, 'placeholder' => 'Select or type district', 'depends' => ['rgnsubdistrictsearch-city_id'], 'url' => Url::to(['/rgn-district/depdrop-options', 'selected' => $model->city_id]), 'loadingText' => 'Loading districts ...']]); ?> <?php echo $form->field($model, 'city_id')->widget(DepDrop::classname(), ['data' => [], 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['multiple' => FALSE, 'allowClear' => TRUE, 'tags' => TRUE, 'maximumInputLength' => 255]], 'pluginOptions' => ['initialize' => TRUE, 'placeholder' => 'Select or type city', 'depends' => ['rgnsubdistrictsearch-province_id'], 'url' => Url::to(['/rgn-city/depdrop-options', 'selected' => $model->city_id]), 'loadingText' => 'Loading cities ...']]);