Blame view

backend/views/team/_form.php 1.17 KB
ca0b7d82   Administrator   upload project
1
2
3
4
  <?php
  
  use yii\helpers\Html;
  use yii\widgets\ActiveForm;
89d4b5ac   Administrator   VItaliy 25.11.2015
5
6
  use \yii\helpers\ArrayHelper;
  use \common\models\TeamGroup;
ca0b7d82   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() ?>
89d4b5ac   Administrator   VItaliy 25.11.2015
19
      <?= $form->field($model, 'group_id')->dropDownList(ArrayHelper::map(TeamGroup::find()->all(), 'id', 'name'), ['prompt' => 'Выберие группу']) ?>
ca0b7d82   Administrator   upload project
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
      <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
  
      <?= $form->field($model, 'img')->textInput(['maxlength' => true]) ?>
  
      <?= $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>