Commit d7a8f9e7 authored by Shakarim Sapa's avatar Shakarim Sapa

- Тест

parent f65093dd
......@@ -57,13 +57,13 @@ $blocks = \common\modules\content\models\CoBlocks::find()->all();
<?= $form->field($model, 'file')->fileInput() ?>
<ul class="nav nav-pills">
<?php $c = 0; foreach ($model->getLangs() as $i => $content) : $c++; ?>
<?php $c = 0; foreach ($model->getLangsHelper() as $i => $content) : $c++; ?>
<li class="<?=($c==1?'active':'')?>"><a href="#lang-<?=$content->lang->url;?>" data-toggle="tab"><?=$content->lang->name;?></a></li>
<?php endforeach; ?>
</ul>
<div class="tab-content" style="padding: 15px 0;">
<?php $c = 0; foreach ($model->getLangs() as $content) : $c++;
<?php $c = 0; foreach ($model->getLangsHelper() as $content) : $c++;
$lang_id = $content->lang->id; ?>
<div class="tab-pane fade <?=($c==1?'active in':'')?>" id="lang-<?=$content->lang->url;?>">
......@@ -73,6 +73,10 @@ $blocks = \common\modules\content\models\CoBlocks::find()->all();
<?= $form->field($content, '['.$lang_id.']text')->textArea(); ?>
<?= MetaTagsWidget::widget([
'model' => $model->meta[$lang_id],
'form' => $form,
]); ?>
</div>
<?php endforeach; ?>
......
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\modules\content\models\CoContent */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment