02524a34
Yarik
test
|
1
2
3
4
5
6
7
8
|
<?php
/**
* @var Team $team
* @var string[] $department
* @var string[] $country
*/
use common\models\Team;
use common\widgets\ImageUploader;
|
b16ed95f
Yarik
test
|
9
|
use kartik\select2\Select2;
|
02524a34
Yarik
test
|
10
11
12
|
use mihaildev\ckeditor\CKEditor;
use yii\helpers\Html;
use yii\jui\DatePicker;
|
b16ed95f
Yarik
test
|
13
|
use yii\web\JsExpression;
|
02524a34
Yarik
test
|
14
15
|
use yii\widgets\ActiveForm;
|
7fe508fb
Виталий
tokar commit
|
16
|
$this->title = 'Команда';
|
02524a34
Yarik
test
|
17
18
|
$this->params[ 'breadcrumbs' ][] = $this->title;
?>
|
7fe508fb
Виталий
tokar commit
|
19
20
|
<div class="login-left-column-title"><?= $this->title ?></div>
<div class="login-left-column-title-two style">Редактирование:</div>
|
02524a34
Yarik
test
|
21
|
|
7fe508fb
Виталий
tokar commit
|
22
23
24
25
26
27
28
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?php
$form = ActiveForm::begin();
?>
</div>
</div>
|
02524a34
Yarik
test
|
29
|
|
7fe508fb
Виталий
tokar commit
|
30
31
32
33
34
35
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field($team, 'lastname')
->textInput (['class'=> 'custom-input-2']) ?>
</div>
</div>
|
02524a34
Yarik
test
|
36
|
|
7fe508fb
Виталий
tokar commit
|
37
38
39
40
41
42
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field($team, 'firstname')
->textInput (['class'=> 'custom-input-2']) ?>
</div>
</div>
|
02524a34
Yarik
test
|
43
|
|
7fe508fb
Виталий
tokar commit
|
44
45
46
47
48
49
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field($team, 'middlename')
->textInput (['class'=> 'custom-input-2']) ?>
</div>
</div>
|
02524a34
Yarik
test
|
50
|
|
7fe508fb
Виталий
tokar commit
|
51
52
53
54
55
56
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field($team, 'link')
->textInput (['class'=> 'custom-input-2']) ?>
</div>
</div>
|
02524a34
Yarik
test
|
57
|
|
7fe508fb
Виталий
tokar commit
|
58
59
60
61
62
63
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field($team, 'position')
->textInput (['class'=> 'custom-input-2']) ?>
</div>
</div>
|
02524a34
Yarik
test
|
64
|
|
7fe508fb
Виталий
tokar commit
|
65
66
67
68
69
70
|
<div class="input-blocks-wrapper admn-select-company">
<div class="input-blocks">
<?= $form->field($team, 'department_id')
->dropDownList($department) ?>
</div>
</div>
|
02524a34
Yarik
test
|
71
|
|
7fe508fb
Виталий
tokar commit
|
72
73
74
75
76
77
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field($team, 'experience_from', [ 'template' => "{label},<span style='font-weight: 700;font-size: 13px'>лет</span><br /><span class='admn-input-txt' style='margin-right: 10px'>с</span>{input}<span class='admn-input-txt' style='margin-left: 10px'>года</span> \n{hint}\n{error}" ])
->textInput (['class'=> 'custom-input-2 custom-input-2-date','type'=>'number'])?>
</div>
</div>
|
02524a34
Yarik
test
|
78
|
|
7fe508fb
Виталий
tokar commit
|
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?=
$form->field($team, 'country_id')->widget(Select2::classname(), [
'options' => ['placeholder' => 'Выбор страны ...'],
'pluginOptions' => [
'allowClear' => true,
'minimumInputLength' => 3,
'ajax' => [
'url' => \yii\helpers\Url::to(['site/country']),
'dataType' => 'json',
'data' => new JsExpression('function(params) { return {q:params.term}; }')
],
'escapeMarkup' => new JsExpression('function (markup) { return markup; }'),
'templateResult' => new JsExpression('function(country) { return country.text; }'),
'templateSelection' => new JsExpression('function (country) { return country.text; }'),
|
b16ed95f
Yarik
test
|
95
|
],
|
7fe508fb
Виталий
tokar commit
|
96
97
98
99
|
]);
?>
</div>
</div>
|
02524a34
Yarik
test
|
100
|
|
7fe508fb
Виталий
tokar commit
|
101
102
103
104
105
106
107
108
109
110
111
|
<div class="input-blocks-wrapper admin-avatar amin-team-foto">
<?= ImageUploader::widget([
'model' => $team,
'field' => 'photo',
'width' => 100,
'height' => 100,
'multi' => false,
'gallery' => $team->photo,
'name' => 'Загрузить фото',
]); ?>
</div>
|
02524a34
Yarik
test
|
112
|
|
7fe508fb
Виталий
tokar commit
|
113
114
115
116
117
|
<div class="input-blocks-wrapper">
<div class="admin-save-btn skills-save-btn style">
<?= Html::submitButton('Добавить',['class'=>'input-blocks-wrapper button']) ?>
</div>
</div>
|
02524a34
Yarik
test
|
118
119
120
121
|
<?php
$form->end();
?>
|