<?php 
$form = ActiveForm::begin(['id' => 'Twig', 'layout' => 'horizontal', 'enableClientValidation' => true, 'errorSummaryCssClass' => 'error-summary alert alert-error', 'fieldConfig' => ['template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}", 'horizontalCssClasses' => ['label' => 'col-sm-1', 'wrapper' => 'col-sm-11', 'error' => '', 'hint' => '']]]);
?>

    <div class="">
        <?php 
$this->beginBlock('main');
?>

        <p>

            <?php 
echo $form->field($model, 'key')->textInput(['maxlength' => true]);
?>
            <?php 
echo $form->field($model, 'value')->widget(\trntv\aceeditor\AceEditor::className(), ['containerOptions' => ['style' => 'height: 500px;']]);
?>
        </p>
        <?php 
$this->endBlock();
?>

        <?php 
echo Tabs::widget(['encodeLabels' => false, 'items' => [['label' => $model->getAliasModel(), 'content' => $this->blocks['main'], 'active' => true]]]);
?>
        <hr/>

        <?php 
echo $form->errorSummary($model);
?>
Exemple #2
0
    <?php 
$form = ActiveForm::begin(['id' => 'Less', 'layout' => 'horizontal', 'enableClientValidation' => true, 'errorSummaryCssClass' => 'error-summary alert alert-error', 'fieldConfig' => ['template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}", 'horizontalCssClasses' => ['label' => 'col-sm-2', 'wrapper' => 'col-sm-8', 'error' => '', 'hint' => '']]]);
?>

    <div class="">
        <?php 
$this->beginBlock('main');
?>

        <p>

            <?php 
echo $form->field($model, 'key')->textInput(['maxlength' => true]);
?>
            <?php 
echo $form->field($model, 'value')->widget(\trntv\aceeditor\AceEditor::className(), ['mode' => 'less']);
?>
        </p>
        <?php 
$this->endBlock();
?>

        <?php 
echo Tabs::widget(['encodeLabels' => false, 'items' => [['label' => 'Less', 'content' => $this->blocks['main'], 'active' => true]]]);
?>
        <hr/>

        <?php 
echo $form->errorSummary($model);
?>
Exemple #3
0
    <?php 
$form = ActiveForm::begin(['id' => 'Html', 'layout' => 'horizontal', 'enableClientValidation' => true, 'errorSummaryCssClass' => 'error-summary alert alert-error', 'fieldConfig' => ['template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}", 'horizontalCssClasses' => ['label' => 'col-sm-2', 'wrapper' => 'col-sm-8', 'error' => '', 'hint' => '']]]);
?>

    <div class="">
        <?php 
$this->beginBlock('main');
?>

        <p>

            <?php 
echo $form->field($model, 'key')->textInput(['maxlength' => true]);
?>
            <?php 
echo $form->field($model, 'value')->widget(\trntv\aceeditor\AceEditor::className());
?>
        </p>
        <?php 
$this->endBlock();
?>

        <?php 
echo Tabs::widget(['encodeLabels' => false, 'items' => [['label' => 'Html', 'content' => $this->blocks['main'], 'active' => true]]]);
?>
        <hr/>

        <?php 
echo $form->errorSummary($model);
?>