示例#1
0
    <?php 
echo $form->field($model, 'judul')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'summary')->textInput(['maxlength' => true]);
?>

    <?php 
// $form->field($model, 'deskripsi')->textarea(['rows' => 6])
?>
    <?php 
echo $form->field($model, 'deskripsi')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'standard']);
?>
    <?php 
echo $form->field($model, 'author', ['template' => "{label}{input}\n{hint}\n{error}"])->dropDownList(ArrayHelper::map(User::getAuthor(), 'id', 'nama_depan'), ['prompt' => '-- Pilih --']);
?>

    <?php 
echo $form->field($model, 'sumber')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'schedule_date')->widget(DateTimePicker::className(), ['language' => 'en', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-m-dd hh:ii', 'todayBtn' => true]]);
?>
    <?php 
echo Html::activeLabel($model, 'tag');
?>
    <?php 
echo SelectizeTextInput::widget(['model' => $model->tag, 'name' => 'Artikel[tag]', 'id' => 'artikel-tag', 'value' => $model->isNewRecord ? '' : $model->tag, 'clientOptions' => ['plugins' => ['remove_button'], 'delimiter' => ',', 'persist' => false, 'create' => 'function(input){
                    return {