_form.php
2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use mihaildev\ckeditor\CKEditor;
use mihaildev\elfinder\InputFile;
use mihaildev\elfinder\ElFinder;
?>
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($user, 'username')->textInput() ?>
<?= $form->field($user, 'lastname')->textInput() ?>
<?= $form->field($user, 'firstname')->textInput() ?>
<?= $form->field($user, 'email')->textInput() ?>
<?= $form->field($user_info, 'user_id')->textInput() ?>
<?= $form->field($user_info, 'busy')->textInput(['maxlength' => true]) ?>
<?= $form->field($user_info, 'experience')->textInput() ?>
<?= $form->field($user_info, 'salary')->textInput(['maxlength' => true]) ?>
<?= $form->field($user_info, 'job')->textInput(['maxlength' => true]) ?>
<?= $form->field($user_info, 'location')->textInput(['maxlength' => true]) ?>
<?= $form->field($user_info, 'soft')->textInput() ?>
<?= $form->field($user_info, 'guarantee')->textInput() ?>
<?= $form->field($user_info, 'contract')->textInput() ?>
<?= $form->field($user_info, 'estimate')->textInput() ?>
<?= $form->field($user_info, 'purchase')->textInput() ?>
<?= $form->field($user_info, 'delivery')->textInput() ?>
<?= $form->field($user_info, 'prepayment')->textInput() ?>
<?= $form->field($user_info, 'about')->widget(CKEditor::className(),[
'editorOptions' => ElFinder::ckeditorOptions('elfinder',[
'preset' => 'full', //разработанны стандартные настройки basic, standard, full данную возможность не обязательно использовать
'inline' => false, //по умолчанию false]),
'filebrowserUploadUrl'=>Yii::$app->getUrlManager()->createUrl('file/uploader/images-upload')
]
)
]); ?>
<?= \common\widgets\FieldEditor::widget([
'template'=>'education',
'item_id'=> $user->id,
'model'=>'common\models\User',
'language'=>'0'
]); ?>
<div class="form-group">
<?= Html::submitButton('Create', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>