Exemple #1
0
<div class="fragment1-data-form">

    <?php 
$disabled = $model->isNewRecord ? null : 'disabled';
$form = ActiveForm::begin(['fieldConfig' => $this->getDefaultFieldConfig2()]);
?>
	<table class="table">
    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => 128]);
?>
    
    <?php 
echo $form->field($model, 'content')->textarea(['rows' => 15]);
?>
	<?php 
KindEditor::widget(['input' => '#fragment1data-content']);
?>
    <?php 
echo $form->field($model, 'sort_num')->textInput();
?>

    
	</table>
	<?php 
$this->echoButtons2($model);
?>
    <?php 
ActiveForm::end();
?>

</div>
Exemple #2
0
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\web\View;
use common\includes\FieldUtility;
use components\widgets\KindEditor;
?>

<?php 
echo FieldUtility::editorForm($field, $value);
?>

<?php 
$inputId = FieldUtility::getInputId($field, []);
KindEditor::widget(['id' => $inputId]);
Exemple #3
0
				<input type="file" name="Page[title_pic]" class="form-control file" 
					onchange="document.getElementById('page-title_pic').value=getPath(this);" /> 
				</div>
			</td>
			<td><div class="help-block"></div></td>
		</tr>
	    
	    <?php 
echo $form->field($model, 'category_id')->dropDownList($categories);
?>
	    
	    <?php 
echo $form->field($model, 'body')->textarea(['rows' => 25]);
?>
	    <?php 
KindEditor::widget(['id' => 'page-body']);
?>
	  
		</table>
	</div>

	<div id="tableOption" class="tab-pane">
	    <table class="table">
		    <?php 
echo $form->field($model, 'summary')->textarea(['rows' => 5]);
?>
		
		    <?php 
echo $form->field($model, 'publish_time')->textInput();
?>