Example #1
0
?>
" style="display: none">
                <?php 
echo $this->render('_blocks', ['model' => $model]);
?>
            </div>

        </div>

        <div class="col-md-12">
            <h4><?php 
echo Yii::t('cms', 'Meta Tags');
?>
</h4>
            <?php 
echo $form->field($model, 'meta')->widget(MultipleInput::className(), ['columns' => [['name' => 'name', 'title' => Yii::t('cms', 'Name'), 'type' => 'dropDownList', 'items' => call_user_func([Page::getDefinitionClass(), 'getMetaTypesList'])], ['name' => 'content', 'title' => Yii::t('cms', 'Content')]]])->label(false);
?>
        </div>
    </div>


    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('cms', 'Create') : Yii::t('cms', 'Save'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

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