fitness-web/backend/views/waste/view.php
2016-05-08 08:56:42 +02:00

44 lines
1.2 KiB
PHP

<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model common\models\Waste */
$this->title = $model->id_waste;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/waste', 'Wastes'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="waste-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a(Yii::t('common/waste', 'Update'), ['update', 'id' => $model->id_waste], ['class' => 'btn btn-primary']) ?>
<?= Html::a(Yii::t('common/waste', 'Delete'), ['delete', 'id' => $model->id_waste], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => Yii::t('common/waste', 'Are you sure you want to delete this item?'),
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id_waste',
'count',
'id_product',
'stock_before',
'stock_after',
'id_user',
'comment',
'created_at',
'updated_at',
],
]) ?>
</div>