add Raktár model + crud

This commit is contained in:
2015-09-20 14:55:05 +02:00
parent a3e4f42c6a
commit 47341b6396
12 changed files with 544 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model common\models\Warehouse */
$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/warehouse', 'Warehouses'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="warehouse-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a(Yii::t('common/warehouse', 'Update'), ['update', 'id' => $model->id_warehouse], ['class' => 'btn btn-primary']) ?>
<?php
/* echo Html::a(Yii::t('common/warehouse', 'Delete'), ['delete', 'id' => $model->id_warehouse], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => Yii::t('common/warehouse', 'Are you sure you want to delete this item?'),
'method' => 'post',
],
]) */
?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'name',
[
'attribute' => 'status',
'label' => Yii::t('common/warehouse', "Active"),
'value' => $model->statusHuman
],
'created_at',
'updated_at',
],
]) ?>
</div>