/** * Lists all deleted RgnCountry models. * @return mixed */ public function actionDeleted() { if (RgnCountryAccess::allowDeleted() == FALSE) { throw RgnCountryAccess::exception('deleted'); } $searchModel = new RgnCountrySearch(); $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-country-search"> <?php $form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']); ?> <?php echo $form->field($model, 'id'); ?> <?php echo $form->field($model, 'status')->dropDownList(RgnCountrySearch::optsstatus()); ?> <?php echo $form->field($model, 'name'); ?> <?php echo $form->field($model, 'abbreviation'); ?> <div class="form-group"> <?php echo Html::submitButton('Search', ['class' => 'btn btn-primary']); ?> <?php