view.php 895 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\DetailView;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\models\Clock */
  6. $this->title = $model->id;
  7. $this->params['breadcrumbs'][] = ['label' => Yii::t('common', 'Clocks'), 'url' => ['index']];
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="box box-success">
  11. <div class="box-body">
  12. <?= DetailView::widget([
  13. 'model' => $model,
  14. 'attributes' => [
  15. 'id',
  16. 'user_id',
  17. 'poiname',
  18. 'poiaddress',
  19. 'lng',
  20. 'lat',
  21. 'nation',
  22. 'province',
  23. 'city',
  24. 'district',
  25. 'street',
  26. 'street_number',
  27. 'remark',
  28. 'created_at',
  29. 'updated_at',
  30. 'status',
  31. 'circle_id',
  32. 'content:ntext',
  33. ],
  34. ]) ?>
  35. </div>
  36. </div>