Пример #1
0
 /**
  * Lists all deleted City models.
  * @return mixed
  */
 public function actionDeleted()
 {
     if (CityAccess::allowDeleted() == FALSE) {
         throw CityAccess::exception('deleted');
     }
     $searchModel = new CitySearch();
     $dataProvider = $searchModel->searchDeleted($_GET);
     Tabs::clearLocalStorage();
     Url::remember();
     \Yii::$app->session['__crudReturnUrl'] = null;
     return $this->render('deleted', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
Пример #2
0
 * @var yii\widgets\ActiveForm $form
 */
?>

<div class="city-search">

	<?php 
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']);
?>

	<?php 
echo $form->field($model, 'id');
?>

	<?php 
echo $form->field($model, 'recordStatus')->dropDownList(CitySearch::optsRecordStatus());
?>

	<?php 
echo $form->field($model, 'number');
?>

	<?php 
echo $form->field($model, 'name');
?>

	<?php 
echo $form->field($model, 'abbreviation');
?>

	<?php 
Пример #3
0
 * @var yii\widgets\ActiveForm $form
 */
?>

<div class="city-search">

	<?php 
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']);
?>

	<?php 
echo $form->field($model, 'id');
?>

	<?php 
echo $form->field($model, 'status')->dropDownList(CitySearch::optsstatus());
?>

	<?php 
echo $form->field($model, 'number');
?>

	<?php 
echo $form->field($model, 'name');
?>

	<?php 
echo $form->field($model, 'abbreviation');
?>

	<?php