You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
966 B

  1. <?php
  2. use yii\helpers\Html;
  3. use common\models\ars\City;
  4. use common\models\ars\Area;
  5. /* @var $this yii\web\View */
  6. /* @var $model common\models\ars\TakingSite */
  7. $this->title = '编辑: ' . $model->name;
  8. $this->params['breadcrumbs'][] = ['label' => 'Taking Sites', 'url' => ['index']];
  9. $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  10. $this->params['breadcrumbs'][] = 'Update ';
  11. $cities = City::find()->select('city_id as id,name')->where(['province_id' => $model->province])->asArray()->all();
  12. $cityList = \yii\helpers\ArrayHelper::map($cities, 'id', 'name');
  13. $areas = Area::find()->select('area_id as id,name')->where(['city_id' => $model->city])->asArray()->all();
  14. $areaList = \yii\helpers\ArrayHelper::map($areas, 'id', 'name');
  15. ?>
  16. <div class="taking-site-update">
  17. <?= $this->render('_form', [
  18. 'model' => $model,
  19. 'cityList' => $cityList,
  20. 'areaList' => $areaList
  21. ]) ?>
  22. </div>