ea09d15d
Yarik
test
|
1
2
3
4
5
6
7
8
9
|
<?php
/**
* @var Vacancy $vacancy
* @var Employment[] $employment
*/
use common\models\Employment;
use common\models\Vacancy;
use common\widgets\FieldEditor;
use common\widgets\ImageUploader;
|
e8236f44
Yarik
test
|
10
|
use kartik\select2\Select2;
|
ea09d15d
Yarik
test
|
11
12
|
use mihaildev\ckeditor\CKEditor;
use yii\helpers\Html;
|
e8236f44
Yarik
test
|
13
|
use yii\web\JsExpression;
|
ea09d15d
Yarik
test
|
14
15
|
use yii\widgets\ActiveForm;
|
8e5fa1e8
Виталий
tokar commit
|
16
|
$this->title = 'Вакансии';
|
ea09d15d
Yarik
test
|
17
18
|
$this->params[ 'breadcrumbs' ][] = $this->title;
?>
|
8e5fa1e8
Виталий
tokar commit
|
19
|
<div class="login-left-column-title"><?= $this->title ?></div>
|
58806a3d
Виталий
tokar commit
|
20
|
<div class="login-left-column-title-two style">Редактирование:</div>
|
ea09d15d
Yarik
test
|
21
22
23
24
|
<?php
$form = ActiveForm::begin();
?>
|
58806a3d
Виталий
tokar commit
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field($vacancy, 'name')
->textInput (['class'=> 'custom-input-2']); ?>
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field($vacancy, 'link')
->textInput (['class'=> 'custom-input-2']); ?>
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field($vacancy, 'user_name')
->textInput (['class'=> 'custom-input-2']); ?>
<span class="admin-hint-vacancy-contact">Вы</span>
</div>
</div>
|
ea09d15d
Yarik
test
|
48
|
|
58806a3d
Виталий
tokar commit
|
49
50
51
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<span style="color: red">сюда нужен инпут телефон</span>
|
ea09d15d
Yarik
test
|
52
|
|
58806a3d
Виталий
tokar commit
|
53
54
55
|
<span class="admin-hint-vacancy-contact">Ваш</span>
</div>
</div>
|
ea09d15d
Yarik
test
|
56
|
|
e8236f44
Yarik
test
|
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?=
$form->field($vacancy, 'city')->widget(Select2::classname(), [
'options' => ['placeholder' => 'Выбор города ...'],
'pluginOptions' => [
'allowClear' => true,
'minimumInputLength' => 3,
'ajax' => [
'url' => \yii\helpers\Url::to(['site/city']),
'dataType' => 'json',
'data' => new JsExpression('function(params) { return {q:params.term}; }')
],
'escapeMarkup' => new JsExpression('function (markup) { return markup; }'),
'templateResult' => new JsExpression('function(city) { return city.text; }'),
'templateSelection' => new JsExpression('function (city) { return city.text; }'),
],
]);
?>
|
58806a3d
Виталий
tokar commit
|
76
77
78
|
<span class="admin-hint-vacancy-contact">Ваш</span>
</div>
</div>
|
e8236f44
Yarik
test
|
79
|
|
58806a3d
Виталий
tokar commit
|
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
<div class="input-blocks-wrapper admin-vacancy-check" style="margin-top: 29px">
<div class="input-blocks">
<?= $form->field($vacancy, 'employmentInput')
->checkboxList($employment,
[
'item' => function($index, $label, $name, $checked, $value) {
$return = '<div class="admin-who-check-payment">';
$return .= '<input class="custom-check" id="select_admin_payment'.$value.'" type="checkbox" name="' . $name . '" value="' . $value . '" '.($checked ? "checked" :"").' >';
$return .= '<label for="select_admin_payment'.$value.'" >';
$return .= '<span></span>' . ucwords($label);
$return .= '</label>';
$return .= '</div>';
return $return;
}
]
) ?>
|
e8236f44
Yarik
test
|
96
97
|
</div>
</div>
|
ea09d15d
Yarik
test
|
98
|
|
58806a3d
Виталий
tokar commit
|
99
100
101
102
103
104
105
106
107
108
109
|
<div class="skills-admin-wrapper style">
<div class="input-blocks-wrapper skills-programs">
<div class="input-blocks">
<?= FieldEditor::widget (
[
'template' => 'requirements', 'item_id' => $vacancy->vacancy_id, 'model' => 'common\models\Vacancy', 'language' => 'ru',
]
); ?>
</div>
</div>
</div>
|
ea09d15d
Yarik
test
|
110
|
|
8e5fa1e8
Виталий
tokar commit
|
111
112
113
114
115
|
<div class="input-blocks-wrapper full-blocks admin-editor-bl">
<div class="input-blocks">
<?= $form->field($vacancy, 'description')->widget(CKEditor::className()) ?>
</div>
</div>
|
ea09d15d
Yarik
test
|
116
|
|
8e5fa1e8
Виталий
tokar commit
|
117
118
119
|
<div class="admin-save-btn skills-save-btn style">
<?= Html::submitButton('Добавить') ?>
</div>
|
ea09d15d
Yarik
test
|
120
|
|
ea09d15d
Yarik
test
|
121
122
123
124
|
<?php
$form->end();
?>
|