_vacancy_form.php
1.34 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
<?php
/**
* @var Vacancy $vacancy
* @var Employment[] $employment
*/
use common\models\Employment;
use common\models\Vacancy;
use common\widgets\FieldEditor;
use common\widgets\ImageUploader;
use mihaildev\ckeditor\CKEditor;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
$this->title = 'Вакансии';
$this->params[ 'breadcrumbs' ][] = $this->title;
?>
<div class="login-left-column-title"><?= $this->title ?></div>
<?php
$form = ActiveForm::begin();
?>
<?= $form->field($vacancy, 'name')
->textInput() ?>
<?= $form->field($vacancy, 'link')
->textInput() ?>
<?= $form->field($vacancy, 'user_name')
->textInput() ?>
<?= $form->field($vacancy, 'city')
->textInput() ?>
<?= $form->field($vacancy, 'employmentInput')
->checkboxList($employment) ?>
<?= FieldEditor::widget (
[
'template' => 'requirements', 'item_id' => $vacancy->vacancy_id, 'model' => 'common\models\Vacancy', 'language' => 'ru',
]
); ?>
<div class="input-blocks-wrapper full-blocks admin-editor-bl">
<div class="input-blocks">
<?= $form->field($vacancy, 'description')->widget(CKEditor::className()) ?>
</div>
</div>
<div class="admin-save-btn skills-save-btn style">
<?= Html::submitButton('Добавить') ?>
</div>
<?php
$form->end();
?>