user auto disable word listening

improve card creation
mobileapi - add ticket usage count
This commit is contained in:
Schneider Roland
2023-07-04 16:40:20 +02:00
parent d3e4009f3e
commit 9809731933
11 changed files with 196 additions and 112 deletions

View File

@@ -1,27 +1,36 @@
<?php
namespace frontend\components;
use common\models\User;
use yii\base\Widget;
class ReceptionWidget extends Widget{
public $form;
public $number;
public $route;
public $viewFile = '//common/_reception';
/**
* @var User
*/
public $user ;
public function init(){
parent::init();
$this->user = User::findOne(\Yii::$app->user->id);
}
public function run(){
echo $this->render($this->viewFile,[ 'model' => $this->form ]);
echo $this->render($this->viewFile,[ 'model' => $this->form,
"user_key_listener_enabled" => $this->user->key_listener_enabled ]);
}
}