beginWidget('bootstrap.widgets.TbActiveForm', array( 'id'=>'log-form', // Please note: When you enable ajax validation, make sure the corresponding // controller action is handling ajax validation correctly. // There is a call to performAjaxValidation() commented in generated controller code. // See class documentation of CActiveForm for details on this. 'enableAjaxValidation'=>false, )); ?>

Fields with * are required.

errorSummary($model); ?> isNewRecord) echo $form->textFieldControlGroup($model,'date',array('span'=>5, 'value' => date('Y-m-d'))); else echo $form->textFieldControlGroup($model,'date',array('span'=>5, )); ?> textAreaControlGroup($model,'title',array('rows'=>6,'span'=>8)); ?> textAreaControlGroup($model,'content',array('rows'=>6,'span'=>8)); ?> 'POST', 'data' => ['content'=> 'js: $("#Log_content").val()'], 'update' => '#markdownAjaxContent', 'error'=>'function(msg){alert("An error has happened" + JSON.stringify(msg));}', ]); ?>

renderPartial('_ajaxMarkdownPreview', ['content' => $model->content, ], false, true); ?>
isNewRecord ? 'Create' : 'Save',array( 'color'=>MsHtml::BUTTON_COLOR_PRIMARY, 'size'=>MsHtml::BUTTON_SIZE_LARGE, )); ?>
endWidget(); ?>