| @@ -352,19 +352,39 @@ const ApplicationDetailCard = ( | |||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} sm={12} md={5.5} lg={5.5} sx={{ mb: 1, ml: { md: 1, lg: 3 } }}> | |||||
| <Grid item xs={12} sm={12} md={5.5} lg={5} sx={{ mb: 1}}> | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={4} lg={4} | |||||
| <Grid item xs={12} md={3} lg={3} | |||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5">Status:</Typography></FormLabel> | <FormLabel><Typography variant="h5">Status:</Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={8} lg={8}> | |||||
| <Grid item xs={12} md={9} lg={9}> | |||||
| <FormControl variant="outlined"> | <FormControl variant="outlined"> | ||||
| {StatusUtils.getStatusByTextEng(currentApplicationDetailData.status, currentApplicationDetailData.creditor)} | {StatusUtils.getStatusByTextEng(currentApplicationDetailData.status, currentApplicationDetailData.creditor)} | ||||
| </FormControl> | </FormControl> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| { | |||||
| currentApplicationDetailData.reason ? | |||||
| <Grid item xs={12} md={12} lg={12}> | |||||
| <Grid container alignItems={"center"} direction="row" > | |||||
| <Grid item xs={12} md={3} lg={3}> | |||||
| <FormLabel><Typography variant="h5">Reason:</Typography></FormLabel> | |||||
| </Grid> | |||||
| <Grid item xs={12} md={9} lg={9}> | |||||
| <FormLabel> | |||||
| <Typography id='reason' variant="pnspsFormParagraph"> | |||||
| {currentApplicationDetailData.reason} | |||||
| </Typography> | |||||
| </FormLabel> | |||||
| </Grid> | |||||
| </Grid> | |||||
| </Grid> | |||||
| : "" | |||||
| } | |||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| <Grid container direction="row" justifyContent="flex-start" | <Grid container direction="row" justifyContent="flex-start" | ||||
| @@ -5,7 +5,11 @@ import { | |||||
| Typography, | Typography, | ||||
| Stack, | Stack, | ||||
| Box, | Box, | ||||
| Tab | |||||
| } from '@mui/material'; | } from '@mui/material'; | ||||
| import { TabPanel, TabContext, TabList } from '@mui/lab'; | |||||
| import MainCard from "components/MainCard"; | |||||
| import { useEffect, useState, lazy } from "react"; | import { useEffect, useState, lazy } from "react"; | ||||
| import axios from "axios"; | import axios from "axios"; | ||||
| import { useNavigate, useParams } from "react-router-dom"; | import { useNavigate, useParams } from "react-router-dom"; | ||||
| @@ -56,6 +60,7 @@ const UserMaintainPage = () => { | |||||
| const [refUserData, setRefUserData] = useState({}); | const [refUserData, setRefUserData] = useState({}); | ||||
| const [editMode, setEditMode] = useState(false); | const [editMode, setEditMode] = useState(false); | ||||
| const [createMode, setCreateMode] = useState(false); | const [createMode, setCreateMode] = useState(false); | ||||
| const [selectedTab, setSelectedTab] = useState("1"); | |||||
| function updateUserObject(userData) { | function updateUserObject(userData) { | ||||
| setEditedCustomerData(userData); | setEditedCustomerData(userData); | ||||
| @@ -74,6 +79,10 @@ const UserMaintainPage = () => { | |||||
| setIsCollectData(!isCollectData); | setIsCollectData(!isCollectData); | ||||
| } | } | ||||
| const handleChange = (event, newValue) => { | |||||
| setSelectedTab(newValue); | |||||
| } | |||||
| // ==============================|| DELETE WINDOW RELATED ||============================== // | // ==============================|| DELETE WINDOW RELATED ||============================== // | ||||
| const [isWindowOpen, setIsWindowOpen] = useState(false); | const [isWindowOpen, setIsWindowOpen] = useState(false); | ||||
| const handleClose = () => { | const handleClose = () => { | ||||
| @@ -390,9 +399,20 @@ const UserMaintainPage = () => { | |||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={12} lg={12}> | <Grid item xs={12} md={12} lg={12}> | ||||
| <Box xs={12} ml={2} mt={2} mr={3} sx={{ borderRadius: '10px', backgroundColor: '#fff' }}> | <Box xs={12} ml={2} mt={2} mr={3} sx={{ borderRadius: '10px', backgroundColor: '#fff' }}> | ||||
| <LoginGrid | |||||
| userId={params.id} | |||||
| /> | |||||
| <MainCard elevation={0} border={false} content={false} sx={{maxWidth: '100%', mr:2, width: "-webkit-fill-available"}}> | |||||
| <TabContext value={selectedTab}> | |||||
| <Box sx={{ borderBottom: 1, borderColor: 'divider' }}> | |||||
| <TabList variant="scrollable" onChange={handleChange} aria-label="lab API tabs example"> | |||||
| <Tab label="Login Log" value="1" /> | |||||
| </TabList> | |||||
| </Box> | |||||
| <TabPanel value="1"> | |||||
| <LoginGrid | |||||
| userId = {params.id} | |||||
| /> | |||||
| </TabPanel> | |||||
| </TabContext> | |||||
| </MainCard> | |||||
| </Box> | </Box> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| @@ -180,8 +180,8 @@ const UserMaintainPage_Individual = () => { | |||||
| <TabContext value={selectedTab}> | <TabContext value={selectedTab}> | ||||
| <Box sx={{ borderBottom: 1, borderColor: 'divider' }}> | <Box sx={{ borderBottom: 1, borderColor: 'divider' }}> | ||||
| <TabList variant="scrollable" onChange={handleChange} aria-label="lab API tabs example"> | <TabList variant="scrollable" onChange={handleChange} aria-label="lab API tabs example"> | ||||
| <Tab label="Files" value="1" /> | |||||
| <Tab label="Login" value="2" /> | |||||
| <Tab label="Attachments" value="1" /> | |||||
| <Tab label="Login Log" value="2" /> | |||||
| </TabList> | </TabList> | ||||
| </Box> | </Box> | ||||
| <TabPanel value="1"> | <TabPanel value="1"> | ||||
| @@ -249,8 +249,8 @@ const UserMaintainPage_Organization = () => { | |||||
| <TabContext value={selectedTab}> | <TabContext value={selectedTab}> | ||||
| <Box sx={{ borderBottom: 1, borderColor: 'divider' }}> | <Box sx={{ borderBottom: 1, borderColor: 'divider' }}> | ||||
| <TabList variant="scrollable" onChange={handleChange} aria-label="lab API tabs example"> | <TabList variant="scrollable" onChange={handleChange} aria-label="lab API tabs example"> | ||||
| <Tab label="Files" value="1" /> | |||||
| <Tab label="Login" value="2" /> | |||||
| <Tab label="Attachments" value="1" /> | |||||
| <Tab label="Login Log" value="2" /> | |||||
| </TabList> | </TabList> | ||||
| </Box> | </Box> | ||||
| <TabPanel value="1"> | <TabPanel value="1"> | ||||