view.php 1022 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\DetailView;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\modules\i18n\models\I18nSourceMessage */
  6. $this->title = $model->id;
  7. $this->params['breadcrumbs'][] = ['label' => Yii::t('backend', 'I18n Source Messages'), 'url' => ['index']];
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="i18n-source-message-view">
  11. <p>
  12. <?php echo Html::a(Yii::t('backend', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
  13. <?php echo Html::a(Yii::t('backend', 'Delete'), ['delete', 'id' => $model->id], [
  14. 'class' => 'btn btn-danger',
  15. 'data' => [
  16. 'confirm' => Yii::t('backend', 'Are you sure you want to delete this item?'),
  17. 'method' => 'post',
  18. ],
  19. ]) ?>
  20. </p>
  21. <?php echo DetailView::widget([
  22. 'model' => $model,
  23. 'attributes' => [
  24. 'id',
  25. 'category',
  26. 'message:ntext',
  27. ],
  28. ]) ?>
  29. </div>