Example #1
0
?>

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

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

    <?php 
echo $form->field($model, 'start_date')->widget(DatePicker::className(), ['clientOptions' => ['format' => 'dd-mm-yyyy', 'language' => 'vi', 'autoclose' => true, 'todayHighlight' => true], 'clientEvents' => []]);
?>

    <?php 
echo $form->field($model, 'end_date')->widget(DatePicker::className(), ['clientOptions' => ['format' => 'dd-mm-yyyy', 'language' => 'vi', 'autoclose' => true, 'todayHighlight' => true], 'clientEvents' => []]);
?>

    <?php 
echo $form->field($model, 'image')->widget(InputFile::className(), ['language' => 'en', 'controller' => 'elfinder', 'path' => 'image', 'filter' => 'image', 'template' => '<div class="input-group">{input}<span class="input-group-btn">{button}</span></div>', 'options' => ['class' => 'form-control'], 'buttonOptions' => ['class' => 'btn btn-success'], 'multiple' => false]);
?>

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

    <?php 
echo $form->field($model, 'published')->textInput(['value' => 10]);
?>

    <div class="form-group">
Example #2
0
    <div class="form-site col-md-6">
        <?php 
echo $form->field($model, 'name');
?>
        <?php 
echo $form->field($model, 'tel');
?>
        <?php 
echo $form->field($model, 'count');
?>
        <?php 
echo $form->field($model, 'email');
?>
        <?php 
echo $form->field($model, 'date_tour')->widget(DatePicker::className(), ['clientOptions' => ['format' => 'dd.mm.yyyy', 'language' => 'ru', 'autoclose' => true, 'todayHighlight' => true, 'startDate' => date('Y-m-d')], 'clientEvents' => []]);
?>

    </div>
    <div class="form-img col-md-6">
        <?php 
echo Html::img('/ss/basic/web/img/img-ord.jpg', ['alt' => '...', 'data-src' => 'holder.js/300x200']);
?>
    </div>
    <div class="col-md-12">
        <?php 
echo $form->field($model, 'info')->widget(CKEditor::className(), ['editorOptions' => ['preset' => 'full', 'inline' => false]]);
//$form->field($model, 'info')
?>

        <div class="form-group">