Add the ability to select a priority when creating a task (low, medium, high)

This commit is contained in:
iIronside
2023-10-13 16:31:22 +03:00
parent 1c3eeb4cf3
commit 5ce77f2ef0
8 changed files with 62 additions and 18 deletions

View File

@ -2,14 +2,10 @@
namespace backend\modules\task\controllers;
use backend\modules\project\models\ProjectUser;
use backend\modules\task\models\ProjectTaskUser;
use common\classes\Debug;
use yii\data\ActiveDataProvider;
use yii\web\Response;
use Yii;
use backend\modules\task\models\ProjectTask;
use backend\modules\task\models\TaskSearch;
use backend\modules\task\models\ProjectTaskSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
@ -43,7 +39,7 @@ class TaskController extends Controller
*/
public function actionIndex()
{
$searchModel = new TaskSearch();
$searchModel = new ProjectTaskSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [