update.php 801 B

1234567891011121314151617181920212223242526
  1. <?php
  2. use yii\helpers\Html;
  3. /* @var $this yii\web\View */
  4. /* @var $model app\models\Category */
  5. $this->title = Yii::t('app', 'Update {modelClass}: ', [
  6. 'modelClass' => 'Category',
  7. ]) . ' ' . $model->name;
  8. $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Categories'), 'url' => ['index']];
  9. $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  10. $this->params['breadcrumbs'][] = Yii::t('app', 'Update');
  11. ?>
  12. <div class="panel panel-primary">
  13. <div class="panel-heading"><span class="glyphicon glyphicon-list"></span><strong> <?= Html::encode($this->title) ?></strong></div>
  14. <div class="panel-body">
  15. <div class="category-update">
  16. <?= $this->render('_form', [
  17. 'model' => $model,
  18. ]) ?>
  19. </div>
  20. </div>
  21. </div>