<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use backend\models\UploadForm;

/* @var $this yii\web\View */
/* @var $model common\models\Ticket */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="ticket-form">

     <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?>
    
    <?php  echo $form->field($model, "image")->fileInput()?>
    
     <div class="form-group">
        <?= Html::submitButton(  Yii::t('common/ticket', 'Create') ,['class' =>  'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
    