view.php 995 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\DetailView;
  4. /* @var $this yii\web\View */
  5. /* @var $model app\models\Images */
  6. $this->title = $model->id;
  7. $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Images'), 'url' => ['index']];
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="images-view">
  11. <h1><?= Html::encode($this->title) ?></h1>
  12. <p>
  13. <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
  14. <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->id], [
  15. 'class' => 'btn btn-danger',
  16. 'data' => [
  17. 'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
  18. 'method' => 'post',
  19. ],
  20. ]) ?>
  21. </p>
  22. <?= DetailView::widget([
  23. 'model' => $model,
  24. 'attributes' => [
  25. 'id',
  26. 'lot_id',
  27. 'path',
  28. 'date_create',
  29. ],
  30. ]) ?>
  31. </div>