예제 #1
0
?>
        </button>
    </div>
    <?php 
\Zelenin\yii\SemanticUI\widgets\ActiveForm::end();
?>
     </div>

<div class="ui bottom attached  tab segment"  data-tab="tabappend">
        <?php 
$form = \Zelenin\yii\SemanticUI\widgets\ActiveForm::begin(['action' => ['/redisman/item/append', 'key' => urlencode($model->key)]]);
?>

    <div class="one">
        <?php 
$model->formatvalue = '';
echo $form->field($model, 'formatvalue')->widget(\lav45\aceEditor\AceEditorWidget::className(), ['mode' => 'text', 'fontSize' => 15, 'height' => 200, 'options' => ['id' => 'appendfield']]);
?>
    </div>    <br/>

    <div class="one">
        <button class="ui blue icon button submit"><i class="save icon"></i><?php 
echo Redisman::t('redisman', 'Append');
?>
        </button>
    </div>
    <?php 
\Zelenin\yii\SemanticUI\widgets\ActiveForm::end();
?>

</div>
예제 #2
0
<p>
    <?php 
$form = \Zelenin\yii\SemanticUI\widgets\ActiveForm::begin(['action' => ['/redisman/item/update', 'key' => urlencode($model->key)]]);
?>
 <div class="one">
    <?php 
echo $form->field($model, 'formatvalue')->widget(\lav45\aceEditor\AceEditorWidget::className(), ['mode' => 'text', 'fontSize' => 15, 'height' => 200]);
?>
</div>    <br/>

<div class="one">
    <button class="ui blue icon button submit"><i class="save icon"></i><?php 
echo Yii::t('app', 'Replace');
?>
    </button>
</div>
<?php 
\Zelenin\yii\SemanticUI\widgets\ActiveForm::end();
?>
</p>