da8366ac
Administrator
upload project
|
1
2
3
4
|
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
|
c6152cd6
Administrator
VItaliy 25.11.2015
|
5
6
|
use \yii\helpers\ArrayHelper;
use \common\models\TeamGroup;
|
da8366ac
Administrator
upload project
|
7
8
9
10
11
12
13
14
15
16
17
18
|
/* @var $this yii\web\View */
/* @var $model common\models\Team */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="team-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'group_id')->textInput() ?>
|
c6152cd6
Administrator
VItaliy 25.11.2015
|
19
|
<?= $form->field($model, 'group_id')->dropDownList(ArrayHelper::map(TeamGroup::find()->all(), 'id', 'name'), ['prompt' => 'Выберие группу']) ?>
|
da8366ac
Administrator
upload project
|
20
21
|
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
|
e9398092
Administrator
VItaliy 27.11.2015
|
22
23
24
25
26
27
28
29
30
31
|
<?= \backend\components\ImageUploader::widget([
'model'=> $model,
'field'=>'img',
'width'=>120,
'height'=>120,
'multi'=>false,
'gallery' =>$model->img,
'name' => 'Загрузить картинку'
]); ?>
|
da8366ac
Administrator
upload project
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<?= $form->field($model, 'phone')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'skype')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
|