view.php 1015 B

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