fix notification filter

This commit is contained in:
Moaz Dawalibi 2024-11-12 17:12:43 +03:00
parent e0a117d674
commit dd2d6e65b9
3 changed files with 14 additions and 7 deletions

View File

@ -14,6 +14,7 @@ const AddModel: React.FC = () => {
...values,
});
};
return (
<>
<LayoutModel

View File

@ -1,16 +1,20 @@
import React from "react";
import ValidationField from "../../../../../Components/ValidationField/ValidationField";
import { Col, Row } from "reactstrap";
import { useFormikContext } from "formik";
import { useGetAllUser } from "../../../../../api/user";
const FilterForm = () => {
const formik = useFormikContext();
const { data:Users } = useGetAllUser();
return (
<div>
<Row>
<Col>
<ValidationField placeholder="name" label="name" name="name" />
<ValidationField placeholder="created_at" label="created_at" name="created_at" />
<ValidationField placeholder="users" label="users" name="users" type="Select" option={Users?.data} fieldNames={{label:"username", value:"id"}} />
<ValidationField placeholder="title" label="title" name="title" />
</Col>
</Row>
</div>

View File

@ -582,7 +582,8 @@
"question_content": "محتوى السؤال",
"body": "النص",
"seen": "شوهدت",
"notifiable_type": "نوع الاشعار"
"notifiable_type": "نوع الاشعار",
"users":"المستخدمون"
},
"select": {
"enums": {
@ -1035,7 +1036,8 @@
"questionBank": "بنك الأسئلة",
"roles": "الدور",
"coupon": "قسيمة",
"notification": "إدارة الاشعارات"
"notification": "إدارة الاشعارات",
"add_notification":"إدارة الاشعارات"
},
"table": {
"student": "قائمة الطلاب",