</div>

    <?php 
ActiveForm::end();
?>

    <div id="portionsList_prototype" class="hide">
        <?php 
echo $this->render('@app/views/partials/_ingredient-line', ['model' => $model, 'property' => 'portionsList', 'ingredient' => ['name' => '', 'count' => '', 'portionsList' => '']]);
?>
    </div>

    <div id="recipesList_prototype" class="hide">
        <?php 
echo $this->render('@app/views/partials/_ingredient-line', ['model' => $model, 'property' => 'recipesList', 'ingredient' => ['name' => '', 'weight' => '', 'recipesList' => '']]);
?>
    </div>

    <div id="productsList_prototype" class="hide">
        <?php 
echo $this->render('@app/views/partials/_ingredient-line', ['model' => $model, 'property' => 'productsList', 'ingredient' => ['name' => '', 'weight' => '', 'productsList' => '']]);
?>
    </div>

</div>

<?php 
DiaryAsset::register($this);
$this->registerJs('
    Diary.init();
');
Exemplo n.º 2
0
<?php

use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
$childName = "Кира";
$this->title = $childName . ": " . Yii::t('ui', 'Diary');
$this->params['breadcrumbs'][] = $this->title;
\app\assets\DiaryAsset::register($this);
?>

<div class="row">
    <div class="col-lg-9 col-md-9 col-sm-9 right" id="content">
        <div class="block">

            <h1><?php 
echo Html::encode($this->title);
?>
</h1>

            <div role="tabpanel">

                <!-- Nav tabs -->
                <ul class="nav nav-tabs" role="tablist">
                    <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab"><?php 
echo Yii::t('ui', 'Home');
?>
</a></li>
                    <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab"><?php 
echo Yii::t('ui', 'Food');