Esempio n. 1
0
<?php

use yii\helpers\Html;
use yii\bootstrap\Tabs;
/* @var $this yii\web\View */
/* @var $model app\modules\cms\models\Category */
$this->title = Yii::t('app', 'Редактирование услуги: ') . ' ' . $model->title;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Categories'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->title, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
?>
<div class="service-update">

    <?php 
echo Tabs::widget(['items' => [['id' => 'one', 'label' => 'Основные данные', 'content' => $this->render('_form', ['model' => $model]), 'active' => true], ['id' => 'two', 'label' => 'Слайдер', 'content' => \app\modules\cms\widgets\ImageUpload::widget(['model' => $model, 'primaryKey' => $model->id])]]]);
?>

</div>
Esempio n. 2
0
<?php

use yii\helpers\Html;
use yii\bootstrap\Tabs;
/* @var $this yii\web\View */
/* @var $tab string */
/* @var $model app\modules\store\models\Product */
$this->title = 'Обновление';
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Товары'), 'url' => ['index']];
$this->params['breadcrumbs'][] = Yii::t('app', 'Обновление');
?>
<div class="product-update">

    <?php 
echo Tabs::widget(['items' => [['id' => 'one', 'label' => 'Основные данные', 'content' => $this->render('_form', ['model' => $model]), 'active' => $tab == 'main'], ['id' => 'photo', 'label' => 'Фото', 'content' => \app\modules\cms\widgets\ImageUpload::widget(['model' => $model, 'primaryKey' => $model->id, 'maxNumberOfFiles' => 1]), 'active' => $tab == 'photo'], ['id' => 'two', 'label' => 'Модификаторы', 'content' => \app\modules\store\widgets\admin\Modificator::widget(['model' => $model]), 'active' => $tab == 'modificator']]]);
?>

</div>
Esempio n. 3
0
<?php

use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\modules\store\models\ModificatorCategory */
$this->title = Yii::t('app', 'Обновление');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Товары'), 'url' => ['/store/admin/product']];
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', $model->product->title), 'url' => ['/store/admin/product/update', 'id' => $model->product->id]];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="modificator-category-update">


    <?php 
echo \yii\bootstrap\Tabs::widget(['items' => [['id' => 'one', 'label' => 'Основные данные', 'content' => $this->render('_form', ['model' => $model]), 'active' => true], ['id' => 'two', 'label' => 'Фото', 'content' => \app\modules\cms\widgets\ImageUpload::widget(['model' => $model, 'primaryKey' => $model->id, 'maxNumberOfFiles' => 1])]]]);
?>

    <div class="panel panel-default">
        <div class="panel-heading">
            Данные:
        </div>
        <div class="panel-body">
            <table class="table table-bordered">
                <thead>
                <tr>
                    <td>Название</td>
                    <td>Значение</td>
                </tr>
                </thead>
                <tbody>
                <?php