update.php 2.85 KB
<?php
    
    /**
     * @var View                    $this
     * @var \common\models\Customer $model
     */
    
    use yii\web\View;
    use yii\widgets\ActiveForm;
    use yiister\gentelella\widgets\Panel;

    $this->title = 'Заявка № ' . $model->id;
    
    $this->params['breadcrumbs'][] = [
      'label' => 'Все заявки',
      'url' => ['/request']
    ];
    
    $this->params['breadcrumbs'][] = $this->title;
    

?>


<div class="alias-update">
    <?php $form = ActiveForm::begin(); ?>
    <?php
        $xPanel = Panel::begin(
            [
                'header' => $this->title,
            ]
        );
    ?>
  
  <div class="wrapp-blocks-edit-page">
    
      <?= $form->field($model, 'status')
               ->dropDownList(
                   [
                       2 => 'Новая',
                       1 => 'Одобрена',
                       0 => 'Отклонена',
                   ]
               ) ?>
    
      <?= $form->field($model, 'secondname')
               ->textInput() ?>
      
      <?= $form->field($model, 'name')
               ->textInput() ?>
      
      <?= $form->field($model, 'dignity')
               ->textInput() ?>
      
      <?= $form->field($model, 'gender')
               ->dropDownList(
                   [
                       1 => 'Мужской',
                       2 => 'Женский',
                   ]
               ) ?>
      
      <?= $form->field($model, 'birth')
               ->textInput() ?>
      
      <?= $form->field($model, 'citizenship')
               ->textInput() ?>
      
      
      <?= $form->field($model, 'passport')
               ->textInput() ?>
      
      <?= $form->field($model, 'email')
               ->textInput() ?>
      
      <?= $form->field($model, 'organization')
               ->textInput() ?>
      
      <?= $form->field($model, 'conference')
               ->checkbox(
                   [
                       'class' => 'flat',
                   ]
               ) ?>
      
      <?= $form->field($model, 'geee')
               ->checkbox(
                   [
                       'class' => 'flat',
                   ]
               ) ?>
      
      <?= $form->field($model, 'gere')
               ->checkbox(
                   [
                       'class' => 'flat',
                   ]
               ) ?>
    
    <div class="style buttons-page-wr">
      <a href="<?= $model->image ?>" class="btn btn-success" download=>Скачать фото <i class="fa fa-download"></i></a>
    </div>
  
  </div>
    
    <?php
        $xPanel::end();
    ?>
  
  <div class="style buttons-page-wr">
      <?= \yii\helpers\Html::submitButton(
          'Сохранить',
          [ 'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-success' ]
      ) ?>
  </div>
    
    
    <?php ActiveForm::end(); ?>

</div>