view.php 1.57 KB
<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\Importers */

$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Поставщики', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="importers-view">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('Удалить', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Вы увереннны что хотите удалить этот элемент?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'code',
            'name',
            'name_price',
            'currency_id',
            'delivery',
            'email:email',
            'info:ntext',
            'active',
            'PARSER_IS_ACTIVE',
            'PARSER_COLUMN_COUNT',
            'PARSER_FIELD_BRAND',
            'PARSER_FIELD_ARTICLE',
            'PARSER_FIELD_ARTICLE_PREFIX',
            'PARSER_FIELD_PRICE',
            'PARSER_FIELD_DESCR',
            'PARSER_FIELD_BOX',
            'PARSER_FIELD_ADD_BOX',
            'PARSER_FIELD_GROUP_RG',
            'PARSER_FIELD_SIGN',
            'PARSER_FIELD_MULTIPLIER',
            'price_date_update',
        ],
    ]) ?>

</div>