diff --git a/src/views/ticket/_form.php b/src/views/ticket/_form.php index 126d035..6d915fe 100644 --- a/src/views/ticket/_form.php +++ b/src/views/ticket/_form.php @@ -4,18 +4,27 @@ use hipanel\modules\ticket\models\Answer; use hipanel\modules\ticket\models\Thread; use hipanel\modules\ticket\widgets\ConditionalFormWidget; +use hipanel\modules\ticket\widgets\TemplatesWidget; use hipanel\widgets\FileInput; use hipanel\widgets\TimePicker; use hipanel\assets\CheckboxStyleAsset; +use hisite\modules\news\models\Article; use yii\helpers\Html; +use yii\helpers\Json; +use yii\web\View; /** - * @var \yii\web\View + * @var array $priority_data + * @var array $state_data + * @var array $topic_data + * @var string $action + * @var View $this * @var Answer|Thread $model */ + OcticonsAsset::register($this); CheckboxStyleAsset::register($this); -$emptyPreviewText = \yii\helpers\Json::encode(Yii::t('hipanel:ticket', 'Nothing to preview')); +$emptyPreviewText = Json::encode(Yii::t('hipanel:ticket', 'Nothing to preview')); $this->registerJs(<<< JS // Fetch preview $(".js-get-preview").on('click', function (event) { @@ -27,7 +36,7 @@ }); }); JS - , \yii\web\View::POS_READY); + , View::POS_READY); $this->registerCss(<<< 'CSS' .checkbox label { @@ -120,9 +129,9 @@