| @@ -227,7 +227,7 @@ function Header(props) { | |||||
| <Link className="manageUser" to={'/org'}> | <Link className="manageUser" to={'/org'}> | ||||
| <Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> | <Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> | ||||
| {/* <FormattedMessage id="companyOrUserRecord" /> */} | {/* <FormattedMessage id="companyOrUserRecord" /> */} | ||||
| Organization Profile | |||||
| <FormattedMessage id="organizationProfile" /> | |||||
| </Typography> | </Typography> | ||||
| </Link> | </Link> | ||||
| </li> | </li> | ||||
| @@ -186,7 +186,17 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
| </Grid> | </Grid> | ||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={isFailPopUp} onClose={() => setIsFailPopUp(false)} > | |||||
| <Dialog | |||||
| open={isFailPopUp} | |||||
| onClose={() => setIsFailPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Action Fail</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Action Fail</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{failText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{failText}</Typography> | ||||
| @@ -197,7 +207,17 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={isSuccessPopUp} onClose={() => setIsSuccessPopUp(false)} > | |||||
| <Dialog | |||||
| open={isSuccessPopUp} | |||||
| onClose={() => setIsSuccessPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Create Result</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Create Result</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| @@ -353,7 +353,17 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch }) | |||||
| /> | /> | ||||
| </Box> | </Box> | ||||
| <div> | <div> | ||||
| <Dialog open={isErrorPopUp} onClose={() => setIsErrorPopUp(false)} > | |||||
| <Dialog | |||||
| open={isErrorPopUp} | |||||
| onClose={() => setIsErrorPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Action Fail</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Action Fail</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Number of DN record must less than 100.<br />Please edit search form.</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Number of DN record must less than 100.<br />Please edit search form.</Typography> | ||||
| @@ -364,7 +374,17 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch }) | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={selectonWarning} onClose={() => setSelectonWarning(false)} > | |||||
| <Dialog | |||||
| open={selectonWarning} | |||||
| onClose={() => setSelectonWarning(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Please Select DN.</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Please Select DN.</Typography> | ||||
| @@ -375,7 +395,17 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch }) | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={isConfirmPopUp} onClose={() => setConfirmPopUp(false)} > | |||||
| <Dialog | |||||
| open={isConfirmPopUp} | |||||
| onClose={() => setConfirmPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure to mark DN paid?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure to mark DN paid?</Typography> | ||||
| @@ -387,7 +417,17 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch }) | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={isSendPopUp} onClose={() => setSendPopUp(false)} > | |||||
| <Dialog | |||||
| open={isSendPopUp} | |||||
| onClose={() => setSendPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure to send DN?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure to send DN?</Typography> | ||||
| @@ -399,7 +439,17 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch }) | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={wait} onClose={() => setWait(false)} > | |||||
| <Dialog | |||||
| open={wait} | |||||
| onClose={() => setWait(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Calculating, please wait ...</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Calculating, please wait ...</Typography> | ||||
| </DialogContent> | </DialogContent> | ||||
| @@ -92,7 +92,7 @@ const SearchDemandNoteForm = ({ applySearch, orgComboData, searchCriteria, issue | |||||
| <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1 }} width="98%"> | <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1 }} width="98%"> | ||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1, ml:3,mb:2.5}}> | <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1, ml:3,mb:2.5}}> | ||||
| <Typography variant="h5" > | |||||
| <Typography variant="pnspsFormHeader" > | |||||
| Search Form | Search Form | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -83,8 +83,8 @@ const SearchDemandNoteForm = ({ applySearch, searchCriteria, issueComboData | |||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <CardContent sx={{ px: 2.5, pt: 3 }}> | <CardContent sx={{ px: 2.5, pt: 3 }}> | ||||
| <Grid item justifyContent="space-between" alignItems="center" > | <Grid item justifyContent="space-between" alignItems="center" > | ||||
| <Typography variant="h4"> | |||||
| <FormattedMessage id="search"/> | |||||
| <Typography variant="pnspsFormHeader"> | |||||
| <FormattedMessage id="searchForm"/> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| </CardContent> | </CardContent> | ||||
| @@ -215,6 +215,7 @@ const SearchDemandNoteForm = ({ applySearch, searchCriteria, issueComboData | |||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | <ThemeProvider theme={PNSPS_BUTTON_THEME}> | ||||
| <Grid item sx={{mr: 3, mb: 3}}> | <Grid item sx={{mr: 3, mb: 3}}> | ||||
| <Button | <Button | ||||
| color="cancel" | |||||
| variant="contained" | variant="contained" | ||||
| onClick={resetForm} | onClick={resetForm} | ||||
| > | > | ||||
| @@ -98,7 +98,7 @@ const UserSearchPage_Individual = () => { | |||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <div style={BackgroundHead}> | <div style={BackgroundHead}> | ||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | ||||
| <Typography ml={15} color='#FFF' variant="h4"> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}> | |||||
| <FormattedMessage id="paymentInfoRecord" /> | <FormattedMessage id="paymentInfoRecord" /> | ||||
| </Typography> | </Typography> | ||||
| </Stack> | </Stack> | ||||
| @@ -4,8 +4,7 @@ import { | |||||
| Grid, | Grid, | ||||
| Typography, | Typography, | ||||
| FormLabel, | FormLabel, | ||||
| OutlinedInput, | |||||
| Button, | |||||
| Button, TextField, | |||||
| // TextField, | // TextField, | ||||
| // Autocomplete, | // Autocomplete, | ||||
| } from '@mui/material'; | } from '@mui/material'; | ||||
| @@ -15,6 +14,8 @@ import * as React from "react"; | |||||
| import Loadable from 'components/Loadable'; | import Loadable from 'components/Loadable'; | ||||
| const MainCard = Loadable(React.lazy(() => import('components/MainCard'))); | const MainCard = Loadable(React.lazy(() => import('components/MainCard'))); | ||||
| import { useForm } from 'react-hook-form'; | import { useForm } from 'react-hook-form'; | ||||
| import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | |||||
| import {ThemeProvider} from "@emotion/react"; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
| const ApplicationDetailCard = ({ | const ApplicationDetailCard = ({ | ||||
| formData, | formData, | ||||
| @@ -35,59 +36,30 @@ const ApplicationDetailCard = ({ | |||||
| // initialValues: data, | // initialValues: data, | ||||
| // }); | // }); | ||||
| const DisplayField = ({ name, width, value, rows = 1, disabled = false }) => { | |||||
| return <OutlinedInput | |||||
| const DisplayField = ({ name, rows, value, disabled = false }) => { | |||||
| return <TextField | |||||
| fullWidth | fullWidth | ||||
| multiline | |||||
| disabled={disabled} | disabled={disabled} | ||||
| size="small" | |||||
| // onChange={formik.handleChange} | |||||
| inputProps={{ style: {fontSize: '1.1rem'}}} | |||||
| InputProps={{ | |||||
| style: { | |||||
| minHeight:'42.5px', | |||||
| maxHeight: '50vh', | |||||
| padding: '0 0 0 0', | |||||
| height: 'fit-content', | |||||
| boxSizing: "inherit"}, | |||||
| }} | |||||
| sx={{ padding: '10.5px 14px 10.5px 12px'}} | |||||
| {...register(name, | {...register(name, | ||||
| { | { | ||||
| value: value, | value: value, | ||||
| })} | })} | ||||
| id={name} | |||||
| name={name} | |||||
| variant="outlined" | |||||
| multiline | |||||
| minRows={rows} | |||||
| maxRows={6} | maxRows={6} | ||||
| rows={rows} | |||||
| sx={ | |||||
| { | |||||
| "& .Mui-disabled": { | |||||
| WebkitTextFillColor: "#000000", | |||||
| background: "#f8f8f8", | |||||
| }, | |||||
| // "& .MuiInputBase-input.Mui-disabled": { | |||||
| // WebkitTextFillColor: "#000000", | |||||
| // background: "#f8f8f8", | |||||
| // }, | |||||
| width: width ? width : '100%' | |||||
| } | |||||
| } | |||||
| />; | />; | ||||
| } | } | ||||
| const { register, handleSubmit } = useForm() | const { register, handleSubmit } = useForm() | ||||
| // const DisplaySelection = ({ name = "test", value = "", onChange }) => { | |||||
| // return <Autocomplete | |||||
| // {...register(name)} | |||||
| // disablePortal | |||||
| // id={name} | |||||
| // options={formData} | |||||
| // vale={value} | |||||
| // onChange={onChange} | |||||
| // renderInput={(params) => ( | |||||
| // <TextField {...params} | |||||
| // InputLabelProps={{ | |||||
| // shrink: true | |||||
| // }} | |||||
| // /> | |||||
| // )} | |||||
| // /> | |||||
| // } | |||||
| return ( | return ( | ||||
| <MainCard | <MainCard | ||||
| id={"emailTemplateMainCard"} | id={"emailTemplateMainCard"} | ||||
| @@ -141,6 +113,7 @@ const ApplicationDetailCard = ({ | |||||
| <DisplayField | <DisplayField | ||||
| name="description" | name="description" | ||||
| value={formData?.description} | value={formData?.description} | ||||
| rows={2} | |||||
| /> | /> | ||||
| </FormControl> | </FormControl> | ||||
| </Grid> | </Grid> | ||||
| @@ -168,14 +141,14 @@ const ApplicationDetailCard = ({ | |||||
| <Grid container direction="row" justifyContent="space-between" | <Grid container direction="row" justifyContent="space-between" | ||||
| alignItems="center"> | alignItems="center"> | ||||
| <Grid item xs={12} md={6} lg={6} sx={{ mb: 1 }}> | |||||
| <Grid item xs={12} md={12} lg={12} sx={{ mb: 1 }}> | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | |||||
| <Grid item xs={12} md={1.5} lg={1.5} | |||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel>Subject (Cht):</FormLabel> | <FormLabel>Subject (Cht):</FormLabel> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={9} lg={9}> | |||||
| <Grid item xs={12} md={10.5} lg={10.5}> | |||||
| <DisplayField | <DisplayField | ||||
| name="subjectCht" | name="subjectCht" | ||||
| value={formData?.subjectCht} | value={formData?.subjectCht} | ||||
| @@ -202,18 +175,18 @@ const ApplicationDetailCard = ({ | |||||
| </Grid> | </Grid> | ||||
| <Grid container direction="row" justifyContent="space-between" | <Grid container direction="row" justifyContent="space-between" | ||||
| alignItems="center"> | alignItems="center"> | ||||
| <Grid item xs={12} md={6} lg={6} sx={{ mb: 1 }}> | |||||
| <Grid item xs={12} md={12} lg={12} sx={{ mb: 1 }}> | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | |||||
| <Grid item xs={12} md={1.5} lg={1.5} | |||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel>Subject (Chs):</FormLabel> | <FormLabel>Subject (Chs):</FormLabel> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={9} lg={9}> | |||||
| <Grid item xs={12} md={10.5} lg={10.5}> | |||||
| <DisplayField | <DisplayField | ||||
| name="subjectChs" | name="subjectChs" | ||||
| value={formData?.subjectChs} | value={formData?.subjectChs} | ||||
| rows={2} | |||||
| rows={1} | |||||
| /> | /> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| @@ -236,18 +209,18 @@ const ApplicationDetailCard = ({ | |||||
| </Grid> | </Grid> | ||||
| <Grid container direction="row" justifyContent="space-between" | <Grid container direction="row" justifyContent="space-between" | ||||
| alignItems="center"> | alignItems="center"> | ||||
| <Grid item xs={12} md={6} lg={6} sx={{ mb: 1 }}> | |||||
| <Grid item xs={12} md={12} lg={12} sx={{ mb: 1 }}> | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | |||||
| <Grid item xs={12} md={1.5} lg={1.5} | |||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel>Subject (Eng):</FormLabel> | <FormLabel>Subject (Eng):</FormLabel> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={9} lg={9}> | |||||
| <Grid item xs={12} md={10.5} lg={10.5}> | |||||
| <DisplayField | <DisplayField | ||||
| name="subjectEng" | name="subjectEng" | ||||
| value={formData?.subjectEng} | value={formData?.subjectEng} | ||||
| rows={2} | |||||
| rows={1} | |||||
| /> | /> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| @@ -273,33 +246,25 @@ const ApplicationDetailCard = ({ | |||||
| {/*bottom button*/} | {/*bottom button*/} | ||||
| <Grid item s={12} md={12} lg={12} sx={{ mb: 3 }} alignItems={"end"} justifyContent="center"> | <Grid item s={12} md={12} lg={12} sx={{ mb: 3 }} alignItems={"end"} justifyContent="center"> | ||||
| <Grid container maxWidth justifyContent="flex-end"> | <Grid container maxWidth justifyContent="flex-end"> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
| <Button | <Button | ||||
| size="large" | |||||
| color="error" | |||||
| color="delete" | |||||
| variant="contained" | variant="contained" | ||||
| onClick={handleDelete} | onClick={handleDelete} | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| > | > | ||||
| <Typography variant="h5">Delete</Typography> | |||||
| Delete | |||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| <Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| type="submit" | type="submit" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| > | > | ||||
| <Typography variant="h5">Save</Typography> | |||||
| Save | |||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| @@ -25,6 +25,8 @@ const BackgroundHead = { | |||||
| backgroundPosition: 'right' | backgroundPosition: 'right' | ||||
| } | } | ||||
| import { useNavigate } from "react-router"; | import { useNavigate } from "react-router"; | ||||
| import {PNSPS_LONG_BUTTON_THEME} from "../../../themes/buttonConst"; | |||||
| import {ThemeProvider} from "@emotion/react"; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
| @@ -56,7 +58,7 @@ const Index = () => { | |||||
| <LoadingComponent /> | <LoadingComponent /> | ||||
| : | : | ||||
| ( | ( | ||||
| <Grid container sx={{ minHeight: '110vh', backgroundColor: 'backgroundColor.default' }} direction="column" justifyContent="flex-start" alignItems="center" > | |||||
| <Grid container sx={{ backgroundColor: 'backgroundColor.default' }} direction="column" justifyContent="flex-start" alignItems="center" > | |||||
| <Grid item xs={12} width="100%"> | <Grid item xs={12} width="100%"> | ||||
| <div style={BackgroundHead} width="100%"> | <div style={BackgroundHead} width="100%"> | ||||
| <Stack direction="row" height='70px'> | <Stack direction="row" height='70px'> | ||||
| @@ -78,18 +80,18 @@ const Index = () => { | |||||
| <Grid container direction="row" | <Grid container direction="row" | ||||
| justifyContent="space-between" | justifyContent="space-between" | ||||
| alignItems="center"> | alignItems="center"> | ||||
| <Grid item xs={3} md={3} sx={{ ml: 3, mr: 1, mb: 3, mt: 3 }}> | |||||
| <Grid item xs={3} md={3} sx={{ mb:3, ml: 3, mr: 1 }}> | |||||
| <ThemeProvider theme={PNSPS_LONG_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| onClick={()=>{navigate('/emailTemplate/-1')}} | onClick={()=>{navigate('/emailTemplate/-1')}} | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }}> | |||||
| <AddCircleOutlineIcon sx={{ mb: 0.5 }} /> | |||||
| <Typography sx={{ ml: 1 }} variant="h5">New Email Template</Typography> | |||||
| startIcon={<AddCircleOutlineIcon/>} | |||||
| > | |||||
| New Email Template | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| </Grid > | </Grid > | ||||
| @@ -63,8 +63,8 @@ const SearchForm = ({ applySearch, searchCriteria }) => { | |||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <CardContent sx={{ px: 2.5, pt: 3 }}> | <CardContent sx={{ px: 2.5, pt: 3 }}> | ||||
| <Grid item justifyContent="space-between" alignItems="center" > | <Grid item justifyContent="space-between" alignItems="center" > | ||||
| <Typography variant="h4"> | |||||
| <FormattedMessage id="search"/> | |||||
| <Typography variant="pnspsFormHeader"> | |||||
| <FormattedMessage id="searchForm"/> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| </CardContent> | </CardContent> | ||||
| @@ -141,6 +141,7 @@ const SearchForm = ({ applySearch, searchCriteria }) => { | |||||
| <Grid item sx={{mr: 3, mb: 3 }}> | <Grid item sx={{mr: 3, mb: 3 }}> | ||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||
| color="cancel" | |||||
| onClick={resetForm} | onClick={resetForm} | ||||
| aria-label={intl.formatMessage({id: 'reset'})} | aria-label={intl.formatMessage({id: 'reset'})} | ||||
| > | > | ||||
| @@ -69,7 +69,7 @@ const Index = () => { | |||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <div style={BackgroundHead}> | <div style={BackgroundHead}> | ||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | ||||
| <Typography ml={15} color='#FFF' variant="h4"> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}> | |||||
| <FormattedMessage id="paymentHistory"/> | <FormattedMessage id="paymentHistory"/> | ||||
| </Typography> | </Typography> | ||||
| </Stack> | </Stack> | ||||
| @@ -18,6 +18,8 @@ import Loadable from 'components/Loadable'; | |||||
| import { lazy } from 'react'; | import { lazy } from 'react'; | ||||
| import { notifySaveSuccess } from 'utils/CommonFunction'; | import { notifySaveSuccess } from 'utils/CommonFunction'; | ||||
| import { useIntl } from "react-intl"; | import { useIntl } from "react-intl"; | ||||
| import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | |||||
| import {ThemeProvider} from "@emotion/react"; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
| @@ -170,97 +172,78 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| <> | <> | ||||
| {createMode ? | {createMode ? | ||||
| <> | <> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Grid item sx={{ ml: 0, mr: 3 }}> | <Grid item sx={{ ml: 0, mr: 3 }}> | ||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| type="submit" | type="submit" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| > | > | ||||
| <Typography variant="h5">Create</Typography> | |||||
| Create | |||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| </ThemeProvider> | |||||
| </> : | </> : | ||||
| <> | <> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Grid item sx={{ ml: 0, mr: 3 }}> | <Grid item sx={{ ml: 0, mr: 3 }}> | ||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| onClick={loadDataFun} | onClick={loadDataFun} | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| color="cancel" | |||||
| > | > | ||||
| <Typography variant="h5">Reset & Back</Typography> | |||||
| Reset & Back | |||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| <Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| type="submit" | type="submit" | ||||
| color="success" | color="success" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| > | > | ||||
| <Typography variant="h5">Save</Typography> | |||||
| Save | |||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| </ThemeProvider> | |||||
| </> | </> | ||||
| } | } | ||||
| </> | </> | ||||
| : | : | ||||
| <> | <> | ||||
| <Grid item sx={{ ml: 0, mr: 3 }}> | <Grid item sx={{ ml: 0, mr: 3 }}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| onClick={onEditClick} | onClick={onEditClick} | ||||
| > | > | ||||
| <Typography variant="h5">Edit</Typography> | |||||
| Edit | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| { | { | ||||
| currentUserData.creditor ? | currentUserData.creditor ? | ||||
| <Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| color="error" | color="error" | ||||
| onClick={() => setNonCreditorConfirmPopUp(true)} | onClick={() => setNonCreditorConfirmPopUp(true)} | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| > | > | ||||
| <Typography variant="h5">Mark as Non-Creditor</Typography> | |||||
| Mark as Non-Creditor | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| : | : | ||||
| <Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| color="orange" | color="orange" | ||||
| onClick={() => setCreditorConfirmPopUp(true)} | onClick={() => setCreditorConfirmPopUp(true)} | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| > | > | ||||
| <Typography variant="h5">Mark as Creditor</Typography> | |||||
| Mark as Creditor | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| } | } | ||||
| </> | </> | ||||
| @@ -400,7 +383,17 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| } | } | ||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={creditorConfirmPopUp} onClose={() => setCreditorConfirmPopUp(false)} > | |||||
| <Dialog | |||||
| open={creditorConfirmPopUp} | |||||
| onClose={() => setCreditorConfirmPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Creditor?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Creditor?</Typography> | ||||
| @@ -412,7 +405,17 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={nonCreditorConfirmPopUp} onClose={() => setNonCreditorConfirmPopUp(false)} > | |||||
| <Dialog | |||||
| open={nonCreditorConfirmPopUp} | |||||
| onClose={() => setNonCreditorConfirmPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Non-Creditor?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Non-Creditor?</Typography> | ||||
| @@ -19,7 +19,9 @@ const LoadingComponent = Loadable(lazy(() => import('../../extra-pages/LoadingCo | |||||
| import Loadable from 'components/Loadable'; | import Loadable from 'components/Loadable'; | ||||
| import { lazy } from 'react'; | import { lazy } from 'react'; | ||||
| import { notifySaveSuccess } from 'utils/CommonFunction'; | import { notifySaveSuccess } from 'utils/CommonFunction'; | ||||
| import {useIntl} from "react-intl"; | |||||
| import {FormattedMessage, useIntl} from "react-intl"; | |||||
| import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | |||||
| import {ThemeProvider} from "@emotion/react"; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
| @@ -126,46 +128,38 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| {createMode ? | {createMode ? | ||||
| <> | <> | ||||
| <Grid item sx={{ ml: 0, mr: 3 }}> | <Grid item sx={{ ml: 0, mr: 3 }}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| type="submit" | type="submit" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| > | > | ||||
| <Typography variant="h5">Create</Typography> | |||||
| <FormattedMessage id="create" /> | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| </> : | </> : | ||||
| <> | <> | ||||
| <Grid item sx={{ ml: 0, mr: 3 }}> | <Grid item sx={{ ml: 0, mr: 3 }}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| color="cancel" | |||||
| onClick={loadDataFun} | onClick={loadDataFun} | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| > | > | ||||
| <Typography variant="h5">Reset & Back</Typography> | |||||
| <FormattedMessage id="resetAndBack" /> | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| <Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| type="submit" | type="submit" | ||||
| color="success" | color="success" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| > | > | ||||
| <Typography variant="h5">Save</Typography> | |||||
| <FormattedMessage id="save" /> | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| </> | </> | ||||
| } | } | ||||
| @@ -173,17 +167,14 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| : | : | ||||
| <> | <> | ||||
| <Grid item sx={{ ml: 0, mr: 3 }}> | <Grid item sx={{ ml: 0, mr: 3 }}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| onClick={onEditClick} | onClick={onEditClick} | ||||
| > | > | ||||
| <Typography variant="h5">Edit</Typography> | |||||
| <FormattedMessage id="edit" /> | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| </> | </> | ||||
| } | } | ||||
| @@ -197,12 +188,12 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| <Grid container spacing={1}> | <Grid container spacing={1}> | ||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <Typography variant="h4" sx={{ mb: 2, mr: 3, borderBottom: "1px solid black" }}> | <Typography variant="h4" sx={{ mb: 2, mr: 3, borderBottom: "1px solid black" }}> | ||||
| Organization Details | |||||
| <FormattedMessage id="organizationDetails" /> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| <Grid item lg={4} > | <Grid item lg={4} > | ||||
| {FieldUtils.getTextField({ | {FieldUtils.getTextField({ | ||||
| label: FieldUtils.notNullFieldLabel("BR No.:"), | |||||
| label: intl.formatMessage({id: 'brNo'}) + ":", | |||||
| valueName: "brNo", | valueName: "brNo", | ||||
| disabled: true, | disabled: true, | ||||
| form: formik | form: formik | ||||
| @@ -210,7 +201,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| </Grid> | </Grid> | ||||
| <Grid item lg={4} > | <Grid item lg={4} > | ||||
| {FieldUtils.getTextField({ | {FieldUtils.getTextField({ | ||||
| label: "Creditor Account" + ":", | |||||
| label: intl.formatMessage({id: 'creditorAccount'}) + ":", | |||||
| valueName: "creditor", | valueName: "creditor", | ||||
| disabled: true, | disabled: true, | ||||
| form: formik | form: formik | ||||
| @@ -231,7 +222,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| <Grid item lg={4} > | <Grid item lg={4} > | ||||
| {FieldUtils.getTextField({ | {FieldUtils.getTextField({ | ||||
| label: FieldUtils.notNullFieldLabel("Name (Eng):"), | |||||
| label: FieldUtils.notNullFieldLabel(intl.formatMessage({id: 'nameEng'}) + ":"), | |||||
| valueName: "enCompanyName", | valueName: "enCompanyName", | ||||
| disabled: true, | disabled: true, | ||||
| form: formik | form: formik | ||||
| @@ -240,7 +231,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| <Grid item lg={4} > | <Grid item lg={4} > | ||||
| {FieldUtils.getTextField({ | {FieldUtils.getTextField({ | ||||
| label: "Name (Ch):", | |||||
| label: intl.formatMessage({id: 'nameChi'}) + ":", | |||||
| valueName: "chCompanyName", | valueName: "chCompanyName", | ||||
| disabled: true, | disabled: true, | ||||
| form: formik | form: formik | ||||
| @@ -249,7 +240,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| <Grid item lg={4} > | <Grid item lg={4} > | ||||
| {FieldUtils.getDateField({ | {FieldUtils.getDateField({ | ||||
| label: FieldUtils.notNullFieldLabel("Expiry Date:"), | |||||
| label: FieldUtils.notNullFieldLabel(intl.formatMessage({id: 'expiryDate'}) + ":"), | |||||
| valueName: "brExpiryDate", | valueName: "brExpiryDate", | ||||
| disabled: true, | disabled: true, | ||||
| form: formik | form: formik | ||||
| @@ -258,7 +249,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| <Grid item lg={4} > | <Grid item lg={4} > | ||||
| {FieldUtils.getTextField({ | {FieldUtils.getTextField({ | ||||
| label: FieldUtils.notNullFieldLabel("Contact Person:"), | |||||
| label: FieldUtils.notNullFieldLabel(intl.formatMessage({id: 'contactPerson'}) + ":"), | |||||
| valueName: "contactPerson", | valueName: "contactPerson", | ||||
| disabled: (!editMode && !createMode), | disabled: (!editMode && !createMode), | ||||
| form: formik | form: formik | ||||
| @@ -267,7 +258,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| <Grid item lg={4} > | <Grid item lg={4} > | ||||
| {FieldUtils.getPhoneField({ | {FieldUtils.getPhoneField({ | ||||
| label: FieldUtils.notNullFieldLabel("Contact Tel:"), | |||||
| label: FieldUtils.notNullFieldLabel(intl.formatMessage({id: 'userContactNumber'}) + ":"), | |||||
| valueName: { | valueName: { | ||||
| code: "tel_countryCode", | code: "tel_countryCode", | ||||
| num: "phoneNumber" | num: "phoneNumber" | ||||
| @@ -279,7 +270,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| <Grid item lg={4} > | <Grid item lg={4} > | ||||
| {FieldUtils.getPhoneField({ | {FieldUtils.getPhoneField({ | ||||
| label: "Fax No:", | |||||
| label: intl.formatMessage({id: 'contactFaxNumber'}) + ":", | |||||
| valueName: { | valueName: { | ||||
| code: "fax_countryCode", | code: "fax_countryCode", | ||||
| num: "faxNumber" | num: "faxNumber" | ||||
| @@ -291,7 +282,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| <Grid item lg={4} > | <Grid item lg={4} > | ||||
| {FieldUtils.getComboField({ | {FieldUtils.getComboField({ | ||||
| label: FieldUtils.notNullFieldLabel("Country:"), | |||||
| label: FieldUtils.notNullFieldLabel(intl.formatMessage({id: 'country'}) + ":"), | |||||
| valueName: "country", | valueName: "country", | ||||
| disabled: (!editMode && !createMode), | disabled: (!editMode && !createMode), | ||||
| dataList: ComboData.country, | dataList: ComboData.country, | ||||
| @@ -302,7 +293,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| <Grid item lg={4} > | <Grid item lg={4} > | ||||
| {FieldUtils.getComboField({ | {FieldUtils.getComboField({ | ||||
| label: FieldUtils.notNullFieldLabel("District:"), | |||||
| label: FieldUtils.notNullFieldLabel(intl.formatMessage({id: 'district'}) + ":"), | |||||
| valueName: "district", | valueName: "district", | ||||
| disabled: (!editMode && !createMode), | disabled: (!editMode && !createMode), | ||||
| dataList: ComboData.district, | dataList: ComboData.district, | ||||
| @@ -314,7 +305,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| <Grid item lg={4} > | <Grid item lg={4} > | ||||
| {FieldUtils.getAddressField({ | {FieldUtils.getAddressField({ | ||||
| label: FieldUtils.notNullFieldLabel("Address:"), | |||||
| label: FieldUtils.notNullFieldLabel(intl.formatMessage({id: 'formAddress'}) + ":"), | |||||
| valueName: ["addressLine1", "addressLine2", "addressLine3"], | valueName: ["addressLine1", "addressLine2", "addressLine3"], | ||||
| disabled: (!editMode && !createMode), | disabled: (!editMode && !createMode), | ||||
| form: formik | form: formik | ||||
| @@ -327,7 +318,17 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| } | } | ||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={creditorConfirmPopUp} onClose={() => setCreditorConfirmPopUp(false)} > | |||||
| <Dialog | |||||
| open={creditorConfirmPopUp} | |||||
| onClose={() => setCreditorConfirmPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Creditor?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Creditor?</Typography> | ||||
| @@ -339,7 +340,17 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={nonCreditorConfirmPopUp} onClose={() => setNonCreditorConfirmPopUp(false)} > | |||||
| <Dialog | |||||
| open={nonCreditorConfirmPopUp} | |||||
| onClose={() => setNonCreditorConfirmPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Non-Creditor?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Non-Creditor?</Typography> | ||||
| @@ -33,6 +33,7 @@ const BackgroundHead = { | |||||
| backgroundPosition: 'right' | backgroundPosition: 'right' | ||||
| } | } | ||||
| import { | import { | ||||
| FormattedMessage, | |||||
| // FormattedMessage, | // FormattedMessage, | ||||
| useIntl | useIntl | ||||
| } from "react-intl"; | } from "react-intl"; | ||||
| @@ -130,15 +131,19 @@ const OrganizationDetailPage = () => { | |||||
| <div style={BackgroundHead}> | <div style={BackgroundHead}> | ||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | ||||
| {isGLDLoggedIn()? | {isGLDLoggedIn()? | ||||
| <Typography ml={15} color='#FFF' variant="h4">Maintain Organization</Typography> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}> | |||||
| Maintain Organization | |||||
| </Typography> | |||||
| : | : | ||||
| <Typography ml={15} color='#FFF' variant="h4">Organization Profile</Typography> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}> | |||||
| <FormattedMessage id="organizationProfile" /> | |||||
| </Typography> | |||||
| } | } | ||||
| </Stack> | </Stack> | ||||
| </div> | </div> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <Button title="Back" sx={{ ml: 3.5, mt: 2 }} style={{ border: '2px solid' }} variant="outlined" onClick={() => { navigate("/org") }}> | |||||
| <Button aria-label={intl.formatMessage({id: 'back'})} title="Back" sx={{ ml: 3.5, mt: 2 }} style={{ border: '2px solid' }} variant="outlined" onClick={() => { navigate("/org") }}> | |||||
| <ForwardIcon style={{ height: 30, width: 50, transform: "rotate(180deg)" }} /> | <ForwardIcon style={{ height: 30, width: 50, transform: "rotate(180deg)" }} /> | ||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| @@ -256,7 +256,17 @@ const OrganizationCard_loadFromUser = ({ userData, userId }) => { | |||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={isFailPopUp} onClose={() => setIsFailPopUp(false)} > | |||||
| <Dialog | |||||
| open={isFailPopUp} | |||||
| onClose={() => setIsFailPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Action Fail</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Action Fail</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{failText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{failText}</Typography> | ||||
| @@ -1,6 +1,6 @@ | |||||
| // material-ui | // material-ui | ||||
| import { | import { | ||||
| Button, | |||||
| CButton, | |||||
| Grid, TextField, | Grid, TextField, | ||||
| Typography, | Typography, | ||||
| Autocomplete, | Autocomplete, | ||||
| @@ -66,7 +66,7 @@ const OrganizationSearchForm = ({ applySearch }) => { | |||||
| <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1}} width="98%"> | <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1}} width="98%"> | ||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | ||||
| <Typography variant="h5" > | |||||
| <Typography variant="pnspsFormHeader" > | |||||
| Search Form | Search Form | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -237,12 +237,12 @@ const MultiPaymentWindow = (props) => { | |||||
| <Grid item xs={12} md={12}> | <Grid item xs={12} md={12}> | ||||
| <Grid container > | <Grid container > | ||||
| <Grid item> | <Grid item> | ||||
| <Typography sx={{fontSize: "20px", color: "#000000", textAlign: "left" }}> | |||||
| <Typography variant="pnspsFormParagraphBold" sx={{ color: "#000000", textAlign: "left" }}> | |||||
| <FormattedMessage id="payTotal"/>(HK$): | <FormattedMessage id="payTotal"/>(HK$): | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| <Grid item> | <Grid item> | ||||
| <Typography sx={{fontSize: "20px", color: "#000000", textAlign: "left" }}> | |||||
| <Typography variant="pnspsFormParagraphBold" sx={{color: "#000000", textAlign: "left" }}> | |||||
| {" HK$ " + FormatUtils.currencyFormat(props.totalAmount)} | {" HK$ " + FormatUtils.currencyFormat(props.totalAmount)} | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -49,7 +49,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1}} width="98%"> | <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1}} width="98%"> | ||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | ||||
| <Typography variant="h5" > | |||||
| <Typography variant="pnspsFormHeader" > | |||||
| Search Form | Search Form | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -154,6 +154,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| <Grid item sx={{ ml: 3, mb: 3}}> | <Grid item sx={{ ml: 3, mb: 3}}> | ||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||
| color="cancel" | |||||
| onClick={resetForm} | onClick={resetForm} | ||||
| > | > | ||||
| Reset | Reset | ||||
| @@ -68,8 +68,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <CardContent sx={{ px: 2.5, pt: 3 }}> | <CardContent sx={{ px: 2.5, pt: 3 }}> | ||||
| <Grid item justifyContent="space-between" alignItems="center" > | <Grid item justifyContent="space-between" alignItems="center" > | ||||
| <Typography variant="h4"> | |||||
| <FormattedMessage id="search"/> | |||||
| <Typography variant="pnspsFormHeader"> | |||||
| <FormattedMessage id="searchForm"/> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| </CardContent> | </CardContent> | ||||
| @@ -182,6 +182,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | <ThemeProvider theme={PNSPS_BUTTON_THEME}> | ||||
| <Grid item sx={{mr: 3, mb: 3 }}> | <Grid item sx={{mr: 3, mb: 3 }}> | ||||
| <Button | <Button | ||||
| color="cancel" | |||||
| variant="contained" | variant="contained" | ||||
| onClick={resetForm} | onClick={resetForm} | ||||
| aria-label={intl.formatMessage({id: 'reset'})} | aria-label={intl.formatMessage({id: 'reset'})} | ||||
| @@ -69,7 +69,7 @@ const Index = () => { | |||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <div style={BackgroundHead}> | <div style={BackgroundHead}> | ||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | ||||
| <Typography ml={15} color='#FFF' variant="h4"> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}> | |||||
| <FormattedMessage id="paymentHistory"/> | <FormattedMessage id="paymentHistory"/> | ||||
| </Typography> | </Typography> | ||||
| </Stack> | </Stack> | ||||
| @@ -433,7 +433,17 @@ const Index = () => { | |||||
| </Grid> | </Grid> | ||||
| {/*row 2*/} | {/*row 2*/} | ||||
| <div> | <div> | ||||
| <Dialog open={expiryDateErr} onClose={() => setExpiryDateErr(false)} > | |||||
| <Dialog | |||||
| open={expiryDateErr} | |||||
| onClose={() => setExpiryDateErr(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle></DialogTitle> | <DialogTitle></DialogTitle> | ||||
| <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography> | <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| @@ -428,7 +428,17 @@ const FormPanel = ({ formData }) => { | |||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | ||||
| @@ -439,7 +449,17 @@ const FormPanel = ({ formData }) => { | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={wait} onClose={() => setWait(false)} > | |||||
| <Dialog | |||||
| open={wait} | |||||
| onClose={() => setWait(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Calculating, please wait ...</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Calculating, please wait ...</Typography> | ||||
| </DialogContent> | </DialogContent> | ||||
| @@ -85,9 +85,9 @@ const Index = () => { | |||||
| ( | ( | ||||
| <Grid container sx={{ minHeight: '110vh', backgroundColor: '#fff' }} direction="column" justifyContent="flex-start" alignItems="center" > | <Grid container sx={{ minHeight: '110vh', backgroundColor: '#fff' }} direction="column" justifyContent="flex-start" alignItems="center" > | ||||
| <Grid item xs={12} width="100%"> | <Grid item xs={12} width="100%"> | ||||
| <div style={BackgroundHead} width="100%"> | |||||
| <div style={BackgroundHead} width="100%" > | |||||
| <Stack direction="row" height='70px'> | <Stack direction="row" height='70px'> | ||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{ pt: 2 }}> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }, pt:2}}> | |||||
| <FormattedMessage id="proofRecord"/> | <FormattedMessage id="proofRecord"/> | ||||
| </Typography> | </Typography> | ||||
| </Stack> | </Stack> | ||||
| @@ -65,9 +65,9 @@ const Index = () => { | |||||
| ( | ( | ||||
| <Grid container sx={{ minHeight: '110vh', backgroundColor: '#fff' }} direction="column" justifyContent="flex-start" alignItems="center" > | <Grid container sx={{ minHeight: '110vh', backgroundColor: '#fff' }} direction="column" justifyContent="flex-start" alignItems="center" > | ||||
| <Grid item xs={12} width="100%"> | <Grid item xs={12} width="100%"> | ||||
| <div style={BackgroundHead} width="100%"> | |||||
| <Stack direction="row" height='70px'> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{ pt: 2 }}> | |||||
| <div style={BackgroundHead} width="100%" > | |||||
| <Stack direction="row" height='70px' > | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }, pt:2}} > | |||||
| <FormattedMessage id="proofRecord"/> | <FormattedMessage id="proofRecord"/> | ||||
| </Typography> | </Typography> | ||||
| </Stack> | </Stack> | ||||
| @@ -294,7 +294,10 @@ const ApplicationDetailCard = ({ | |||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| <div> | <div> | ||||
| <Dialog open={cancelPopUp} onClose={() => setCancelPopUp(false)} > | |||||
| <Dialog | |||||
| open={cancelPopUp} | |||||
| onClose={() => setCancelPopUp(false)} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure you want to cancel this proof?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure you want to cancel this proof?</Typography> | ||||
| @@ -119,7 +119,9 @@ const Index = () => { | |||||
| <Grid item xs={12} width="100%"> | <Grid item xs={12} width="100%"> | ||||
| <div style={BackgroundHead} width="100%"> | <div style={BackgroundHead} width="100%"> | ||||
| <Stack direction="row" height='70px'> | <Stack direction="row" height='70px'> | ||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{ pt: 2 }}>Proof Record</Typography> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block', pt:2 }}}> | |||||
| Proof Record | |||||
| </Typography> | |||||
| </Stack> | </Stack> | ||||
| </div> | </div> | ||||
| </Grid> | </Grid> | ||||
| @@ -79,7 +79,7 @@ const ApplicationDetailCard = ({ formData, }) => { | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="applicationId"/>: | <FormattedMessage id="applicationId"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -93,7 +93,7 @@ const ApplicationDetailCard = ({ formData, }) => { | |||||
| <Grid container alignItems={"left"}> | <Grid container alignItems={"left"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="applyStatus"/>: | <FormattedMessage id="applyStatus"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -112,7 +112,7 @@ const ApplicationDetailCard = ({ formData, }) => { | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="applyPerson"/>: | <FormattedMessage id="applyPerson"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -132,7 +132,7 @@ const ApplicationDetailCard = ({ formData, }) => { | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="gazetteCount"/>: | <FormattedMessage id="gazetteCount"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -149,7 +149,7 @@ const ApplicationDetailCard = ({ formData, }) => { | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="contactPerson"/>: | <FormattedMessage id="contactPerson"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -164,7 +164,7 @@ const ApplicationDetailCard = ({ formData, }) => { | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="applicationPublishDate" />: | <FormattedMessage id="applicationPublishDate" />: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -181,7 +181,7 @@ const ApplicationDetailCard = ({ formData, }) => { | |||||
| <Grid container alignItems="left"> | <Grid container alignItems="left"> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="myRemarks"/>: | <FormattedMessage id="myRemarks"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -205,7 +205,7 @@ const ApplicationDetailCard = ({ formData, }) => { | |||||
| <Grid item xs={12} sm={12} md={6} lg={6} sx={{mb: 1}}> | <Grid item xs={12} sm={12} md={6} lg={6} sx={{mb: 1}}> | ||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} sm={12} md={12} lg={12} sx={{ alignItems: 'center',wordBreak: 'break-word' }}> | <Grid item xs={12} sm={12} md={12} lg={12} sx={{ alignItems: 'center',wordBreak: 'break-word' }}> | ||||
| <Typography><Typography variant="h5"> | |||||
| <Typography><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="pleaseCheckReminder" />: | <FormattedMessage id="pleaseCheckReminder" />: | ||||
| </Typography></Typography> | </Typography></Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -248,7 +248,7 @@ const ApplicationDetailCard = ({ formData, }) => { | |||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} sm={3} md={3} lg={3} | <Grid item xs={12} sm={3} md={3} lg={3} | ||||
| sx={{ mb: 1, display: 'flex', alignItems: 'center' }}> | sx={{ mb: 1, display: 'flex', alignItems: 'center' }}> | ||||
| <Typography variant="h5"> | |||||
| <Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="payFeeFor"/>: | <FormattedMessage id="payFeeFor"/>: | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -259,9 +259,9 @@ const ApplicationDetailCard = ({ formData, }) => { | |||||
| { | { | ||||
| formik.values.groupType === "Private Bill" | formik.values.groupType === "Private Bill" | ||||
| ? | ? | ||||
| <Typography variant="h5">( {data.noOfPages} {intl.formatMessage({id: 'page'})} x $6,552 )</Typography> | |||||
| <Typography variant="pnspsFormParagraph">( {data.noOfPages} {intl.formatMessage({id: 'page'})} x $6,552 )</Typography> | |||||
| : | : | ||||
| <Typography variant="h5">( {data.length} cm x {data.colCount === 2 ? "$364 二格位" : "$182 一格位"} )</Typography> | |||||
| <Typography variant="pnspsFormParagraph">( {data.length} cm x {data.colCount === 2 ? "$364 二格位" : "$182 一格位"} )</Typography> | |||||
| } | } | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| @@ -322,7 +322,17 @@ const FormPanel = ({ formData }) => { | |||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle> | <DialogTitle> | ||||
| <FormattedMessage id="attention"/> | <FormattedMessage id="attention"/> | ||||
| </DialogTitle> | </DialogTitle> | ||||
| @@ -84,11 +84,11 @@ const Index = () => { | |||||
| <LoadingComponent /> | <LoadingComponent /> | ||||
| : | : | ||||
| ( | ( | ||||
| <Grid container sx={{ width: '100%', backgroundColor: '#fff' }} direction="column" justifyContent="flex-start" alignItems="center" > | |||||
| <Grid container sx={{ width: '100%', backgroundColor: '#fff' }} direction="column" justifyContent="flex-start" alignItems="center" > | |||||
| <Grid item xs={12} width="100%"> | <Grid item xs={12} width="100%"> | ||||
| <div style={BackgroundHead} width="100%"> | <div style={BackgroundHead} width="100%"> | ||||
| <Stack direction="row" height='70px'> | <Stack direction="row" height='70px'> | ||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{ pt: 2 }}> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }, pt:2}}> | |||||
| <FormattedMessage id="proofRecord"/> | <FormattedMessage id="proofRecord"/> | ||||
| </Typography> | </Typography> | ||||
| </Stack> | </Stack> | ||||
| @@ -96,7 +96,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss | |||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | ||||
| <Typography variant="h5" > | |||||
| <Typography variant="pnspsFormHeader" > | |||||
| Search Form | Search Form | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -102,8 +102,8 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData | |||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <CardContent sx={{ px: 2.5, pt: 3 }}> | <CardContent sx={{ px: 2.5, pt: 3 }}> | ||||
| <Grid item justifyContent="space-between" alignItems="center"> | <Grid item justifyContent="space-between" alignItems="center"> | ||||
| <Typography variant="h4"> | |||||
| <FormattedMessage id="search"/> | |||||
| <Typography variant="pnspsFormHeader"> | |||||
| <FormattedMessage id="searchForm"/> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| </CardContent> | </CardContent> | ||||
| @@ -276,6 +276,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData | |||||
| <Grid item sx={{ mr: 3, mb: 3 }}> | <Grid item sx={{ mr: 3, mb: 3 }}> | ||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||
| color="cancel" | |||||
| onClick={resetForm} | onClick={resetForm} | ||||
| aria-label={intl.formatMessage({id: 'reset'})} | aria-label={intl.formatMessage({id: 'reset'})} | ||||
| > | > | ||||
| @@ -82,9 +82,9 @@ const UserSearchPage_Individual = () => { | |||||
| : | : | ||||
| <Grid container sx={{minHeight: '85vh',backgroundColor:'#ffffff'}} direction="column"> | <Grid container sx={{minHeight: '85vh',backgroundColor:'#ffffff'}} direction="column"> | ||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <div style={BackgroundHead}> | |||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | |||||
| <Typography ml={15} color='#FFF' variant="h4"> | |||||
| <div style={BackgroundHead} > | |||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center" > | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}> | |||||
| <FormattedMessage id="proofRecord"/> | <FormattedMessage id="proofRecord"/> | ||||
| </Typography> | </Typography> | ||||
| </Stack> | </Stack> | ||||
| @@ -132,7 +132,7 @@ const PublicNoticeApplyForm = ({ loadedData, selections }) => { | |||||
| <Grid item xs={12} md={12} width="100%" > | <Grid item xs={12} md={12} width="100%" > | ||||
| <div style={BackgroundHead}> | <div style={BackgroundHead}> | ||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | ||||
| <Typography ml={15} color='#FFF' variant="h4"> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}> | |||||
| <FormattedMessage id="applyPublicNotice"/> | <FormattedMessage id="applyPublicNotice"/> | ||||
| </Typography> | </Typography> | ||||
| </Stack> | </Stack> | ||||
| @@ -148,7 +148,7 @@ const PublicNoticeApplyForm = ({ loadedData, selections }) => { | |||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| {/* <Grid item xs={12}> | {/* <Grid item xs={12}> | ||||
| <Typography variant="h5">申請公共啟事</Typography> | |||||
| <Typography variant="pnspsFormParagraphBold">申請公共啟事</Typography> | |||||
| </Grid> */} | </Grid> */} | ||||
| <Grid item xs={12} md={12} width={{ md: "60%", xs: "90%" }}> | <Grid item xs={12} md={12} width={{ md: "60%", xs: "90%" }}> | ||||
| <Box xs={12} mt={1} sx={{ p: 2, border: '3px groove grey', borderRadius: '10px' }}> | <Box xs={12} mt={1} sx={{ p: 2, border: '3px groove grey', borderRadius: '10px' }}> | ||||
| @@ -188,7 +188,7 @@ const PublicNoticeApplyForm = ({ loadedData, selections }) => { | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <Typography variant="h5"> | |||||
| <Typography variant="pnspsFormParagraphBold"> | |||||
| <FormattedMessage id="targetVol" />: | <FormattedMessage id="targetVol" />: | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -214,7 +214,7 @@ const PublicNoticeApplyForm = ({ loadedData, selections }) => { | |||||
| <Grid container direction="row" justifyContent="flex-start" alignItems="center"> | <Grid container direction="row" justifyContent="flex-start" alignItems="center"> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <Typography variant="h5"> | |||||
| <Typography variant="pnspsFormParagraphBold"> | |||||
| <FormattedMessage id="draftFile"/> ({intl.formatMessage({id: 'fileSizeWarning'})}): | <FormattedMessage id="draftFile"/> ({intl.formatMessage({id: 'fileSizeWarning'})}): | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -279,7 +279,17 @@ const PublicNoticeApplyForm = ({ loadedData, selections }) => { | |||||
| </Box> | </Box> | ||||
| </Grid> | </Grid> | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle> | <DialogTitle> | ||||
| <FormattedMessage id="attention"/> | <FormattedMessage id="attention"/> | ||||
| </DialogTitle> | </DialogTitle> | ||||
| @@ -537,7 +537,17 @@ const ApplicationDetailCard = ( | |||||
| </Grid> | </Grid> | ||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | ||||
| @@ -262,7 +262,16 @@ const GazetteDetailCard = ( | |||||
| </Grid> | </Grid> | ||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }}> | |||||
| <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | ||||
| @@ -190,7 +190,7 @@ const ApplicationDetailCard = ( | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="applicationId"/>: | <FormattedMessage id="applicationId"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -220,7 +220,7 @@ const ApplicationDetailCard = ( | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="applyStatus"/>: | <FormattedMessage id="applyStatus"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -236,11 +236,11 @@ const ApplicationDetailCard = ( | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Stack direction="row" justifyContent="flex-start" alignItems="center"> | <Stack direction="row" justifyContent="flex-start" alignItems="center"> | ||||
| <Grid item xs={12} md={7} lg={7}> | <Grid item xs={12} md={7} lg={7}> | ||||
| <FormLabel><Typography variant="h5">原因:</Typography></FormLabel> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph">原因:</Typography></FormLabel> | |||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={5} lg={5}> | <Grid item xs={12} md={5} lg={5}> | ||||
| <FormControl variant="outlined" fullWidth disabled> | <FormControl variant="outlined" fullWidth disabled> | ||||
| <Typography id='reason' variant="h5"> | |||||
| <Typography id='reason' variant="pnspsFormParagraph"> | |||||
| {currentApplicationDetailData.reason} | {currentApplicationDetailData.reason} | ||||
| </Typography> | </Typography> | ||||
| </FormControl> | </FormControl> | ||||
| @@ -259,7 +259,7 @@ const ApplicationDetailCard = ( | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="applyPerson"/>: | <FormattedMessage id="applyPerson"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -306,7 +306,7 @@ const ApplicationDetailCard = ( | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="gazetteCount"/>: | <FormattedMessage id="gazetteCount"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -340,7 +340,7 @@ const ApplicationDetailCard = ( | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="contactPerson"/>: | <FormattedMessage id="contactPerson"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -370,7 +370,7 @@ const ApplicationDetailCard = ( | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="publishDate"/>: | <FormattedMessage id="publishDate"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -405,7 +405,7 @@ const ApplicationDetailCard = ( | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="userContactNumber"/>: | <FormattedMessage id="userContactNumber"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -454,13 +454,13 @@ const ApplicationDetailCard = ( | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="currencyPrice"/>(HK$): | <FormattedMessage id="currencyPrice"/>(HK$): | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={9} lg={9}> | <Grid item xs={12} md={9} lg={9}> | ||||
| <FormLabel><Typography variant="h5">{FormatUtils.currencyFormat(fee)}</Typography></FormLabel> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph">{FormatUtils.currencyFormat(fee)}</Typography></FormLabel> | |||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| @@ -473,7 +473,7 @@ const ApplicationDetailCard = ( | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="userFaxNumber"/>: | <FormattedMessage id="userFaxNumber"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| @@ -524,35 +524,32 @@ const ApplicationDetailCard = ( | |||||
| <Grid container direction="row"> | <Grid container direction="row"> | ||||
| <Grid item xs={12} sm={12} md={2.5} lg={1.6} | <Grid item xs={12} sm={12} md={2.5} lg={1.6} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="draftFile"/>: | <FormattedMessage id="draftFile"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} sm={12} md={9} lg={9} > | <Grid item xs={12} sm={12} md={9} lg={9} > | ||||
| <Grid container direction="row" alignItems="center" justifyContent="flex-start"> | <Grid container direction="row" alignItems="center" justifyContent="flex-start"> | ||||
| <Grid item xs={12} sm={12} md={9} lg={9} sx={{ wordBreak: 'break-word' , }}> | |||||
| <FormControl variant="outlined" fullWidth > | |||||
| <Typography | |||||
| fullWidth | |||||
| id='fileName' | |||||
| variant="h5" | |||||
| > | |||||
| {fileDetail.filename} | |||||
| </Typography> | |||||
| </FormControl> | |||||
| </Grid> | |||||
| <Grid item xs={12} sm={12} md={3} lg={3} > | |||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | |||||
| variant="contained" | |||||
| onClick={onDownloadClick()} | |||||
| aria-label={intl.formatMessage({id: 'download'})} | |||||
| title={intl.formatMessage({id: 'download'})} | |||||
| color="save" | |||||
| startIcon={<DownloadIcon sx={{alignItems:"center"}}/>} | |||||
| <Grid item xs={12} sm={12} md={12} lg={12} sx={{ wordBreak: 'break-word' , }}> | |||||
| <Typography | |||||
| fullWidth | |||||
| id='fileName' | |||||
| variant="pnspsFormParagraph" | |||||
| > | > | ||||
| <FormattedMessage id="download"/> | |||||
| </Button> | |||||
| {fileDetail.filename} | |||||
| </Typography> | |||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | |||||
| sx={{ml:3}} | |||||
| variant="contained" | |||||
| onClick={onDownloadClick()} | |||||
| aria-label={intl.formatMessage({id: 'download'})} | |||||
| title={intl.formatMessage({id: 'download'})} | |||||
| color="save" | |||||
| startIcon={<DownloadIcon sx={{alignItems:"center"}}/>} | |||||
| > | |||||
| <FormattedMessage id="download"/> | |||||
| </Button> | |||||
| </ThemeProvider> | </ThemeProvider> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| @@ -567,10 +564,10 @@ const ApplicationDetailCard = ( | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5">Care Of:</Typography></FormLabel> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph">Care Of:</Typography></FormLabel> | |||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={9} lg={9}> | <Grid item xs={12} md={9} lg={9}> | ||||
| <Typography variant="h5">{currentApplicationDetailData.careOf}</Typography> | |||||
| <Typography variant="pnspsFormParagraph">{currentApplicationDetailData.careOf}</Typography> | |||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| </Grid> : null | </Grid> : null | ||||
| @@ -579,12 +576,12 @@ const ApplicationDetailCard = ( | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <FormLabel><Typography variant="h5"> | |||||
| <FormLabel><Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="extraMark"/>: | <FormattedMessage id="extraMark"/>: | ||||
| </Typography></FormLabel> | </Typography></FormLabel> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={9} lg={9}> | <Grid item xs={12} md={9} lg={9}> | ||||
| <Typography variant="h5">{currentApplicationDetailData.remarks}</Typography> | |||||
| <Typography variant="pnspsFormParagraph">{currentApplicationDetailData.remarks}</Typography> | |||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| @@ -619,21 +616,31 @@ const ApplicationDetailCard = ( | |||||
| onClick={() => setIsPopUp(false)} | onClick={() => setIsPopUp(false)} | ||||
| aria-label={intl.formatMessage({id: 'close'})} | aria-label={intl.formatMessage({id: 'close'})} | ||||
| > | > | ||||
| <Typography variant="h5"> | |||||
| <Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="close"/> | <FormattedMessage id="close"/> | ||||
| </Typography></Button> | </Typography></Button> | ||||
| <Button | <Button | ||||
| onClick={() => doPayment()} | onClick={() => doPayment()} | ||||
| aria-label={intl.formatMessage({id: 'confirm'})} | aria-label={intl.formatMessage({id: 'confirm'})} | ||||
| > | > | ||||
| <Typography variant="h5"> | |||||
| <Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="confirm"/> | <FormattedMessage id="confirm"/> | ||||
| </Typography></Button> | </Typography></Button> | ||||
| </DialogActions> | </DialogActions> | ||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={errorPopUp} onClose={() => setErrorPopUp(false)} > | |||||
| <Dialog | |||||
| open={errorPopUp} | |||||
| onClose={() => setErrorPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle></DialogTitle> | <DialogTitle></DialogTitle> | ||||
| <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography> | <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| @@ -648,7 +655,7 @@ const ApplicationDetailCard = ( | |||||
| onClick={() => setErrorPopUp(false)} | onClick={() => setErrorPopUp(false)} | ||||
| aria-label={intl.formatMessage({id: 'close'})} | aria-label={intl.formatMessage({id: 'close'})} | ||||
| > | > | ||||
| <Typography variant="h5"> | |||||
| <Typography variant="pnspsFormParagraph"> | |||||
| <FormattedMessage id="close"/> | <FormattedMessage id="close"/> | ||||
| </Typography></Button> | </Typography></Button> | ||||
| </DialogActions> | </DialogActions> | ||||
| @@ -21,15 +21,16 @@ import * as yup from 'yup'; | |||||
| import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | ||||
| import {ThemeProvider} from "@emotion/react"; | import {ThemeProvider} from "@emotion/react"; | ||||
| import {FormattedMessage} from "react-intl"; | import {FormattedMessage} from "react-intl"; | ||||
| import {useIntl} from "react-intl"; | |||||
| const StatusChangeDialog = (props) => { | const StatusChangeDialog = (props) => { | ||||
| const [status, setStatus] = useState(""); | const [status, setStatus] = useState(""); | ||||
| const intl = useIntl(); | |||||
| useEffect(() => { | useEffect(() => { | ||||
| console.log(Object.keys(!props.selectedGazetteGroup).length) | console.log(Object.keys(!props.selectedGazetteGroup).length) | ||||
| if(props.getStatus === "cancel"){ | if(props.getStatus === "cancel"){ | ||||
| setStatus("取消") | |||||
| setStatus(intl.formatMessage({id: 'cancel'})) | |||||
| } | } | ||||
| }, [props.getStatus]); | }, [props.getStatus]); | ||||
| @@ -60,8 +61,8 @@ const StatusChangeDialog = (props) => { | |||||
| maxWidth={'xs'} | maxWidth={'xs'} | ||||
| > | > | ||||
| <DialogTitle > | <DialogTitle > | ||||
| <Typography variant="h4" color="error"> | |||||
| {status}公共啟事 | |||||
| <Typography variant="h4"> | |||||
| {status} {intl.formatMessage({id: 'publicNotice'})} | |||||
| </Typography> | </Typography> | ||||
| </DialogTitle> | </DialogTitle> | ||||
| <FormikProvider value={formik}> | <FormikProvider value={formik}> | ||||
| @@ -69,7 +70,8 @@ const StatusChangeDialog = (props) => { | |||||
| <DialogContent> | <DialogContent> | ||||
| <DialogContentText> | <DialogContentText> | ||||
| <FormLabel sx={{fontSize: "18px", color:"#000000",textAlign:"center"}}> | <FormLabel sx={{fontSize: "18px", color:"#000000",textAlign:"center"}}> | ||||
| <Typography variant="h5">確定{status}公共啟事?</Typography> | |||||
| <Typography variant="h5"> | |||||
| {intl.formatMessage({id: 'confirmTo'})}{status} {intl.formatMessage({id: 'publicNotice'})}?</Typography> | |||||
| </FormLabel> | </FormLabel> | ||||
| </DialogContentText> | </DialogContentText> | ||||
| </DialogContent> | </DialogContent> | ||||
| @@ -82,7 +84,7 @@ const StatusChangeDialog = (props) => { | |||||
| variant="contained" | variant="contained" | ||||
| onClick={props.handleClose} | onClick={props.handleClose} | ||||
| autoFocus | autoFocus | ||||
| color="delete" | |||||
| color="cancel" | |||||
| > | > | ||||
| <FormattedMessage id="cancel"/> | <FormattedMessage id="cancel"/> | ||||
| </Button> | </Button> | ||||
| @@ -154,7 +154,7 @@ const DashboardDefault = () => { | |||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <div style={BackgroundHead}> | <div style={BackgroundHead}> | ||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | ||||
| <Typography ml={15} color='#FFF' variant="h4"> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}> | |||||
| <FormattedMessage id="myPublicNotice"/> | <FormattedMessage id="myPublicNotice"/> | ||||
| </Typography> | </Typography> | ||||
| </Stack> | </Stack> | ||||
| @@ -80,13 +80,13 @@ export default function BaseGrid({rows}) { | |||||
| renderCell: (params) => ( | renderCell: (params) => ( | ||||
| isORGLoggedIn()? | isORGLoggedIn()? | ||||
| <div> | <div> | ||||
| <Typography>Care Of: {params.row.careOf}</Typography> | |||||
| <Typography variant="pnspsNormalText">Care Of: {params.row.careOf}</Typography> | |||||
| <Typography> | <Typography> | ||||
| <FormattedMessage id="myRemarks"/>: {params.row.remarks} | |||||
| <FormattedMessage variant="pnspsNormalText" id="myRemarks"/>: {params.row.remarks} | |||||
| </Typography> | </Typography> | ||||
| </div>: | </div>: | ||||
| <div> | <div> | ||||
| <Typography>{params.row.remarks}</Typography> | |||||
| <Typography variant="pnspsNormalText">{params.row.remarks}</Typography> | |||||
| </div> | </div> | ||||
| ) | ) | ||||
| }, | }, | ||||
| @@ -166,12 +166,12 @@ export default function SubmittedTab({ rows }) { | |||||
| renderCell: (params) => ( | renderCell: (params) => ( | ||||
| isORGLoggedIn() ? | isORGLoggedIn() ? | ||||
| <div> | <div> | ||||
| <Typography>Care Of: {params.row.careOf}</Typography> | |||||
| <Typography> | |||||
| <Typography variant="pnspsNormalText">Care Of: {params.row.careOf}</Typography> | |||||
| <Typography variant="pnspsNormalText"> | |||||
| <FormattedMessage id="myRemarks"/>: {params.row.remarks}</Typography> | <FormattedMessage id="myRemarks"/>: {params.row.remarks}</Typography> | ||||
| </div> : | </div> : | ||||
| <div> | <div> | ||||
| <Typography>{params.row.remarks}</Typography> | |||||
| <Typography variant="pnspsNormalText">{params.row.remarks}</Typography> | |||||
| </div> | </div> | ||||
| ) | ) | ||||
| }, | }, | ||||
| @@ -365,7 +365,17 @@ export default function SubmittedTab({ rows }) { | |||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={checkCareOf} onClose={() => setCheckCareOf(false)} > | |||||
| <Dialog | |||||
| open={checkCareOf} | |||||
| onClose={() => setCheckCareOf(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle></DialogTitle> | <DialogTitle></DialogTitle> | ||||
| <Typography variant="h2" style={{ padding: '16px' }}>Warning</Typography> | <Typography variant="h2" style={{ padding: '16px' }}>Warning</Typography> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| @@ -390,7 +400,17 @@ export default function SubmittedTab({ rows }) { | |||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={expiryDateErr} onClose={() => setExpiryDateErr(false)} > | |||||
| <Dialog | |||||
| open={expiryDateErr} | |||||
| onClose={() => setExpiryDateErr(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle></DialogTitle> | <DialogTitle></DialogTitle> | ||||
| <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography> | <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| @@ -65,7 +65,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:marginBottom}}> | <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:marginBottom}}> | ||||
| <Typography variant="pnspsFormHeader" > | <Typography variant="pnspsFormHeader" > | ||||
| <FormattedMessage id="search"/> | |||||
| <FormattedMessage id="searchForm"/> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| {/*row 2*/} | {/*row 2*/} | ||||
| @@ -217,6 +217,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| <Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||
| color="cancel" | |||||
| onClick={resetForm} | onClick={resetForm} | ||||
| aria-label={intl.formatMessage({id: 'reset'})} | aria-label={intl.formatMessage({id: 'reset'})} | ||||
| > | > | ||||
| @@ -83,13 +83,13 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| renderCell: (params) => ( | renderCell: (params) => ( | ||||
| isORGLoggedIn()? | isORGLoggedIn()? | ||||
| <div> | <div> | ||||
| <Typography>Care Of: {params.row.careOf}</Typography> | |||||
| <Typography> | |||||
| <Typography variant="pnspsNormalText">Care Of: {params.row.careOf}</Typography> | |||||
| <Typography variant="pnspsNormalText"> | |||||
| <FormattedMessage id="myRemarks"/>: {params.row.remarks} | <FormattedMessage id="myRemarks"/>: {params.row.remarks} | ||||
| </Typography> | </Typography> | ||||
| </div>: | </div>: | ||||
| <div> | <div> | ||||
| <Typography>{params.row.remarks}</Typography> | |||||
| <Typography variant="pnspsNormalText">{params.row.remarks}</Typography> | |||||
| </div> | </div> | ||||
| ) | ) | ||||
| }, | }, | ||||
| @@ -108,7 +108,7 @@ const PublicNotice = () => { | |||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <div style={BackgroundHead}> | <div style={BackgroundHead}> | ||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | ||||
| <Typography ml={15} color='#FFF' variant="h4"> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}> | |||||
| <FormattedMessage id="myPublicNotice"/> | <FormattedMessage id="myPublicNotice"/> | ||||
| </Typography> | </Typography> | ||||
| </Stack> | </Stack> | ||||
| @@ -129,7 +129,7 @@ const PublicNotice = () => { | |||||
| { | { | ||||
| JSON.parse(localStorage.getItem('userData')).creditor ? ( | JSON.parse(localStorage.getItem('userData')).creditor ? ( | ||||
| <Grid item xs={12} sm={12} md={12} lg={12} sx={{ height:'100%', maxWidth: '1%',width: "-webkit-fill-available", backgroundColor: "#fff", mt: 3, mr: 3, ml: 3, mb: 3, ..._sx }}> | |||||
| <Grid item xs={12} sm={12} md={12} lg={12} sx={{ height:'100%', maxWidth: '100%',width: "-webkit-fill-available", backgroundColor: "#fff", mt: 3, mr: 3, ml: 3, mb: 3, ..._sx }}> | |||||
| <TabContext value={selectedTab}> | <TabContext value={selectedTab}> | ||||
| <Box sx={{ borderBottom: 1, borderColor: 'divider', overflowX: 'auto', overflowY:'auto' }}> | <Box sx={{ borderBottom: 1, borderColor: 'divider', overflowX: 'auto', overflowY:'auto' }}> | ||||
| <TabList onChange={handleChange} aria-label="lab API tabs example" sx={{ display: 'flex', flexDirection: 'row' }}> | <TabList onChange={handleChange} aria-label="lab API tabs example" sx={{ display: 'flex', flexDirection: 'row' }}> | ||||
| @@ -94,7 +94,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss | |||||
| <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1, mb: marginBottom}} width="98%"> | <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1, mb: marginBottom}} width="98%"> | ||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:marginBottom}}> | <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:marginBottom}}> | ||||
| <Typography variant="h5" > | |||||
| <Typography variant="pnspsFormHeader" > | |||||
| Search Form | Search Form | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -17,6 +17,8 @@ import Loadable from 'components/Loadable'; | |||||
| import { lazy } from 'react'; | import { lazy } from 'react'; | ||||
| import { notifyActiveSuccess, notifyLockSuccess, notifySaveSuccess, notifyVerifySuccess } from 'utils/CommonFunction'; | import { notifyActiveSuccess, notifyLockSuccess, notifySaveSuccess, notifyVerifySuccess } from 'utils/CommonFunction'; | ||||
| import {useIntl} from "react-intl"; | import {useIntl} from "react-intl"; | ||||
| import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | |||||
| import {ThemeProvider} from "@emotion/react"; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
| @@ -150,49 +152,39 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | |||||
| <Grid container maxWidth justifyContent="flex-start"> | <Grid container maxWidth justifyContent="flex-start"> | ||||
| {editMode ? | {editMode ? | ||||
| <> | <> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Grid item sx={{ mr: 3 }}> | <Grid item sx={{ mr: 3 }}> | ||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| onClick={loadDataFun} | onClick={loadDataFun} | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| color="cancel" | |||||
| > | > | ||||
| <Typography variant="h5">Reset & Back</Typography> | |||||
| Reset & Back | |||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| <Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| type="submit" | type="submit" | ||||
| color="success" | color="success" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| > | > | ||||
| <Typography variant="h5">Save</Typography> | |||||
| Save | |||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| </ThemeProvider> | |||||
| </> | </> | ||||
| : | : | ||||
| <> | <> | ||||
| <Grid item sx={{ mr: 3 }}> | <Grid item sx={{ mr: 3 }}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| onClick={onEditClick} | onClick={onEditClick} | ||||
| > | > | ||||
| <Typography variant="h5">Edit</Typography> | |||||
| Edit | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| </> | </> | ||||
| } | } | ||||
| @@ -321,16 +313,14 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | |||||
| })} | })} | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={2} sm={2} md={2} lg={2} sx={{ml:2 ,mb:2}}> | <Grid item xs={2} sm={2} md={2} lg={2} sx={{ml:2 ,mb:2}}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end', | |||||
| }} | |||||
| onClick={onVerifiedClick} | onClick={onVerifiedClick} | ||||
| > | > | ||||
| <Typography variant="h5">Verify</Typography> | |||||
| Verify | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| </> | </> | ||||
| } | } | ||||
| @@ -454,31 +444,27 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | |||||
| </Grid> | </Grid> | ||||
| {locked ? | {locked ? | ||||
| <Grid item xs={2} sm={2} md={2} lg={2} sx={{ml:2}}> | <Grid item xs={2} sm={2} md={2} lg={2} sx={{ml:2}}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||
| color="success" | color="success" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| onClick={doUnlock} | onClick={doUnlock} | ||||
| > | > | ||||
| <Typography variant="h5">Active</Typography> | |||||
| Active | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| : | : | ||||
| <Grid item xs={2} sm={2} md={2} lg={2} sx={{ml:2}}> | <Grid item xs={2} sm={2} md={2} lg={2} sx={{ml:2}}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||
| color="error" | color="error" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| onClick={doLock} | onClick={doLock} | ||||
| > | > | ||||
| <Typography variant="h5">Lock</Typography> | |||||
| Lock | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| } | } | ||||
| </> | </> | ||||
| @@ -118,6 +118,7 @@ const UserInformationCard_Individual_Pub = ({ formData, loadDataFun }) => { | |||||
| <Button | <Button | ||||
| aria-label={intl.formatMessage({id: 'back'})} | aria-label={intl.formatMessage({id: 'back'})} | ||||
| variant="contained" | variant="contained" | ||||
| color="cancel" | |||||
| onClick={loadDataFun} | onClick={loadDataFun} | ||||
| > | > | ||||
| <FormattedMessage id="resetAndBack" /> | <FormattedMessage id="resetAndBack" /> | ||||
| @@ -217,7 +218,7 @@ const UserInformationCard_Individual_Pub = ({ formData, loadDataFun }) => { | |||||
| <Grid xs={12} sm={12} md={12} lg={4}> | <Grid xs={12} sm={12} md={12} lg={4}> | ||||
| <Grid container alignItems={"center"} sx={{mb:2}}> | <Grid container alignItems={"center"} sx={{mb:2}}> | ||||
| <Grid item xs={12} sm={12} md={3} lg={3} sx={{ display: 'flex', alignItems: 'center' }}> | <Grid item xs={12} sm={12} md={3} lg={3} sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <Typography variant="h5"> | |||||
| <Typography variant="pnspsFormParagraphBold"> | |||||
| <FormattedMessage id="idNo" />: | <FormattedMessage id="idNo" />: | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -125,9 +125,11 @@ const UserMaintainPage_Individual = () => { | |||||
| <div style={BackgroundHead}> | <div style={BackgroundHead}> | ||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | ||||
| {isGLDLoggedIn()? | {isGLDLoggedIn()? | ||||
| <Typography ml={15} color='#FFF' variant="h4">Maintain Individual User</Typography> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block', pt:2 }}}> | |||||
| Maintain Individual User | |||||
| </Typography> | |||||
| : | : | ||||
| <Typography ml={15} color='#FFF' variant="h4"> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block', pt:2 }}}> | |||||
| <FormattedMessage id="userProfile" /> | <FormattedMessage id="userProfile" /> | ||||
| </Typography> | </Typography> | ||||
| } | } | ||||
| @@ -18,6 +18,8 @@ import Loadable from 'components/Loadable'; | |||||
| import { lazy } from 'react'; | import { lazy } from 'react'; | ||||
| import { notifyActiveSuccess, notifyLockSuccess, notifySaveSuccess, notifyVerifySuccess } from 'utils/CommonFunction'; | import { notifyActiveSuccess, notifyLockSuccess, notifySaveSuccess, notifyVerifySuccess } from 'utils/CommonFunction'; | ||||
| import {useIntl} from "react-intl"; | import {useIntl} from "react-intl"; | ||||
| import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | |||||
| import {ThemeProvider} from "@emotion/react"; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
| @@ -196,50 +198,39 @@ const UserInformationCard_Organization = ({ userData, loadDataFun, orgData }) => | |||||
| <Grid container maxWidth justifyContent="flex-start"> | <Grid container maxWidth justifyContent="flex-start"> | ||||
| {editMode ? | {editMode ? | ||||
| <> | <> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| onClick={loadDataFun} | onClick={loadDataFun} | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| color="cancel" | |||||
| > | > | ||||
| <Typography variant="h5">Reset & Back</Typography> | |||||
| Reset & Back | |||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| <Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| type="submit" | type="submit" | ||||
| color="success" | color="success" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| > | > | ||||
| <Typography variant="h5">Save</Typography> | |||||
| Save | |||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| </ThemeProvider> | |||||
| </> | </> | ||||
| : | : | ||||
| <> | <> | ||||
| <Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| onClick={onEditClick} | onClick={onEditClick} | ||||
| > | > | ||||
| <Typography variant="h5">Edit</Typography> | |||||
| Edit | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| </> | </> | ||||
| } | } | ||||
| @@ -380,17 +371,14 @@ const UserInformationCard_Organization = ({ userData, loadDataFun, orgData }) => | |||||
| })} | })} | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={1} md={1} lg={1}> | <Grid item xs={1} md={1} lg={1}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| onClick={() => { onVerifiedClick() }} | onClick={() => { onVerifiedClick() }} | ||||
| > | > | ||||
| <Typography variant="h5">Verify</Typography> | |||||
| Verify | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| </> | </> | ||||
| } | } | ||||
| @@ -436,33 +424,27 @@ const UserInformationCard_Organization = ({ userData, loadDataFun, orgData }) => | |||||
| {formik.values.locked ? | {formik.values.locked ? | ||||
| <Grid item xs={1} md={1} lg={1} sx={{ ml: 1 }}> | <Grid item xs={1} md={1} lg={1} sx={{ ml: 1 }}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| color="success" | color="success" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end' | |||||
| }} | |||||
| onClick={doUnlock} | onClick={doUnlock} | ||||
| > | > | ||||
| <Typography variant="h5">Active</Typography> | |||||
| Active | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| : | : | ||||
| <Grid item xs={1} md={1} lg={1} sx={{ ml: 1 }}> | <Grid item xs={1} md={1} lg={1} sx={{ ml: 1 }}> | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| size="large" | |||||
| variant="contained" | variant="contained" | ||||
| color="error" | color="error" | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end', | |||||
| }} | |||||
| onClick={doLock} | onClick={doLock} | ||||
| > | > | ||||
| <Typography variant="h5">Lock</Typography> | |||||
| Lock | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| } | } | ||||
| </> | </> | ||||
| @@ -478,11 +460,13 @@ const UserInformationCard_Organization = ({ userData, loadDataFun, orgData }) => | |||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| {currentUserData.orgId == null ? | {currentUserData.orgId == null ? | ||||
| <Grid item lg={2} > | <Grid item lg={2} > | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button variant="contained" | <Button variant="contained" | ||||
| onClick={createOrgClick} | onClick={createOrgClick} | ||||
| > | > | ||||
| <Typography variant="h5">Create Organisation</Typography> | |||||
| Create Organisation | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| : null | : null | ||||
| } | } | ||||
| @@ -577,25 +561,55 @@ const UserInformationCard_Organization = ({ userData, loadDataFun, orgData }) => | |||||
| </form> | </form> | ||||
| } | } | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | ||||
| </DialogContent> | </DialogContent> | ||||
| <DialogActions> | <DialogActions> | ||||
| <Button onClick={() => setIsWarningPopUp(false)}><Typography variant="h5">Close</Typography></Button> | |||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button onClick={() => setIsWarningPopUp(false)}> | |||||
| Close | |||||
| </Button> | |||||
| </ThemeProvider> | |||||
| </DialogActions> | </DialogActions> | ||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={isConfirmPopUp} onClose={() => setIsConfirmPopUp(false)} > | |||||
| <Dialog | |||||
| open={isConfirmPopUp} | |||||
| onClose={() => setIsConfirmPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{confirmText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{confirmText}</Typography> | ||||
| </DialogContent> | </DialogContent> | ||||
| <DialogActions> | <DialogActions> | ||||
| <Button onClick={() => { setIsConfirmPopUp(false) }}><Typography variant="h5">Close</Typography></Button> | |||||
| <Button onClick={() => { confirmAction?.function(); }}><Typography variant="h5">Confirm</Typography></Button> | |||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button onClick={() => { setIsConfirmPopUp(false) }}> | |||||
| Close | |||||
| </Button> | |||||
| <Button onClick={() => { confirmAction?.function(); }}> | |||||
| Confirm | |||||
| </Button> | |||||
| </ThemeProvider> | |||||
| </DialogActions> | </DialogActions> | ||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| @@ -114,6 +114,7 @@ const UserInformationCard_Organization_Pub = ({ userData, loadDataFun,}) => { | |||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||
| onClick={loadDataFun} | onClick={loadDataFun} | ||||
| color="cancel" | |||||
| > | > | ||||
| <FormattedMessage id="resetAndBack" /> | <FormattedMessage id="resetAndBack" /> | ||||
| @@ -186,9 +186,11 @@ const UserMaintainPage_Organization = () => { | |||||
| <div style={BackgroundHead}> | <div style={BackgroundHead}> | ||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | ||||
| {isGLDLoggedIn()? | {isGLDLoggedIn()? | ||||
| <Typography ml={15} color='#FFF' variant="h4">Maintain Organisation User</Typography> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block', pt:2 }}}> | |||||
| Maintain Organisation User | |||||
| </Typography> | |||||
| : | : | ||||
| <Typography ml={15} color='#FFF' variant="h4"> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block', pt:2 }}}> | |||||
| <FormattedMessage id="userProfile" /> | <FormattedMessage id="userProfile" /> | ||||
| </Typography> | </Typography> | ||||
| } | } | ||||
| @@ -82,7 +82,9 @@ const UserMaintainPage = () => { | |||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <div style={BackgroundHead}> | <div style={BackgroundHead}> | ||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | ||||
| <Typography ml={15} color='#FFF' variant="h4">User Profile</Typography> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block', pt:2 }}}> | |||||
| User Profile | |||||
| </Typography> | |||||
| </Stack> | </Stack> | ||||
| </div> | </div> | ||||
| </Grid> | </Grid> | ||||
| @@ -222,7 +222,7 @@ const ManageOrgUserPage = () => { | |||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <div style={BackgroundHead}> | <div style={BackgroundHead}> | ||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | ||||
| <Typography ml={15} color='#FFF' variant="h4"> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}> | |||||
| <FormattedMessage id="companyOrUserRecord" /> | <FormattedMessage id="companyOrUserRecord" /> | ||||
| </Typography> | </Typography> | ||||
| </Stack> | </Stack> | ||||
| @@ -238,7 +238,17 @@ const ManageOrgUserPage = () => { | |||||
| /> | /> | ||||
| </Grid> | </Grid> | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle> | <DialogTitle> | ||||
| <FormattedMessage id="confirm" /> | <FormattedMessage id="confirm" /> | ||||
| </DialogTitle> | </DialogTitle> | ||||
| @@ -81,7 +81,7 @@ const UserSearchForm = ({ applySearch }) => { | |||||
| <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1}} width="98%"> | <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1}} width="98%"> | ||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | ||||
| <Typography variant="h5" > | |||||
| <Typography variant="pnspsFormHeader" > | |||||
| Search Form (GLD User) | Search Form (GLD User) | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -52,7 +52,7 @@ const UserSearchForm_Individual = ({ applySearch }) => { | |||||
| <Grid container sx={{ ml: 2, mt: 1}} width="98%"> | <Grid container sx={{ ml: 2, mt: 1}} width="98%"> | ||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | ||||
| <Typography variant="h5" > | |||||
| <Typography variant="pnspsFormHeader" > | |||||
| Search Form | Search Form | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -57,7 +57,7 @@ const UserSearchForm_Organization = ({applySearch}) => { | |||||
| <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1}} width="98%"> | <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1}} width="98%"> | ||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | ||||
| <Typography variant="h5" > | |||||
| <Typography variant="pnspsFormHeader" > | |||||
| Search Form | Search Form | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -92,7 +92,17 @@ const Mail = () => { | |||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={isResponsPopUp} onClose={() => setIsResponsPopUp(false)} > | |||||
| <Dialog | |||||
| open={isResponsPopUp} | |||||
| onClose={() => setIsResponsPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle>Respons</DialogTitle> | <DialogTitle>Respons</DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h3" style={{ padding: '16px' }}>{responsText}</Typography> | <Typography variant="h3" style={{ padding: '16px' }}>{responsText}</Typography> | ||||
| @@ -25,7 +25,9 @@ const DashboardDefault = () => { | |||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <div style={BackgroundHead}> | <div style={BackgroundHead}> | ||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | ||||
| <Typography ml={15} color='#FFF' variant="h4">Morning, {userData.fullenName}</Typography> | |||||
| <Typography ml={15} color='#FFF' variant="h4" sx={{display: { xs: 'none', sm: 'none', md: 'block' }}}> | |||||
| Morning, {userData.fullenName} | |||||
| </Typography> | |||||
| </Stack> | </Stack> | ||||
| </div> | </div> | ||||
| </Grid> | </Grid> | ||||
| @@ -41,7 +41,7 @@ const UserGroupSearchForm = ({ applySearch }) => { | |||||
| <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1}} width="98%"> | <Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1}} width="98%"> | ||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | ||||
| <Typography variant="h5" > | |||||
| <Typography variant="pnspsFormHeader" > | |||||
| Search Form | Search Form | ||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| @@ -35,6 +35,10 @@ export const PNSPS_BUTTON_THEME = createTheme({ | |||||
| main: '#F3AF2B', | main: '#F3AF2B', | ||||
| contrastText: '#FFFFFF', | contrastText: '#FFFFFF', | ||||
| }, | }, | ||||
| error:{ | |||||
| main: '#F3AF2B', | |||||
| contrastText: '#FFFFFF', | |||||
| }, | |||||
| exportExcel:{ | exportExcel:{ | ||||
| main: '#6A8B9E', | main: '#6A8B9E', | ||||
| contrastText: '#FFFFFF', | contrastText: '#FFFFFF', | ||||
| @@ -77,6 +77,7 @@ export const PNSPS_THEME = createTheme({ | |||||
| }, | }, | ||||
| '&.MuiButton-root':{ | '&.MuiButton-root':{ | ||||
| fontSize: '1.2rem', | fontSize: '1.2rem', | ||||
| fontWeight: '600', | |||||
| alignItems: 'center', | alignItems: 'center', | ||||
| }, | }, | ||||
| } | } | ||||
| @@ -369,6 +370,13 @@ export const PNSPS_THEME = createTheme({ | |||||
| } | } | ||||
| } | } | ||||
| }, | }, | ||||
| MuiFormLabel: { | |||||
| styleOverrides: { | |||||
| root:{ | |||||
| color: "#000000" | |||||
| } | |||||
| } | |||||
| }, | |||||
| MuiTabPanel:{ | MuiTabPanel:{ | ||||
| styleOverrides:{ | styleOverrides:{ | ||||
| root:{ | root:{ | ||||
| @@ -23,9 +23,19 @@ const Typography = (fontFamily) => ({ | |||||
| lineHeight: 1.5 | lineHeight: 1.5 | ||||
| }, | }, | ||||
| pnspsFormParagraph: { | pnspsFormParagraph: { | ||||
| fontWeight: 400, | |||||
| fontWeight: 500, | |||||
| fontSize: '1.1rem', | fontSize: '1.1rem', | ||||
| lineHeight: 0.8 | |||||
| lineHeight: 1 | |||||
| }, | |||||
| pnspsFormParagraphBold: { | |||||
| fontWeight: 600, | |||||
| fontSize: '1.1rem', | |||||
| lineHeight: 1 | |||||
| }, | |||||
| pnspsNormalText: { | |||||
| fontWeight: 600, | |||||
| fontSize: '1.0rem', | |||||
| lineHeight: 1.0 | |||||
| }, | }, | ||||
| h1: { | h1: { | ||||
| fontWeight: 600, | fontWeight: 600, | ||||
| @@ -43,6 +43,7 @@ | |||||
| "mainPage": "Main Page", | "mainPage": "Main Page", | ||||
| "myPublicNotice": "My Public Notice", | "myPublicNotice": "My Public Notice", | ||||
| "publicNotice": "Public Notice", | |||||
| "publicNoticePayment": "Public Notice: Payment", | "publicNoticePayment": "Public Notice: Payment", | ||||
| "publicNoticePaymentFail": "Public Notice: Payment Failed", | "publicNoticePaymentFail": "Public Notice: Payment Failed", | ||||
| "publicNoticePaymentSuccess": "Public Notice: Payment Success", | "publicNoticePaymentSuccess": "Public Notice: Payment Success", | ||||
| @@ -265,6 +266,7 @@ | |||||
| "contactPerson": "Contact Person", | "contactPerson": "Contact Person", | ||||
| "requireContactPerson": "Please enter contact person", | "requireContactPerson": "Please enter contact person", | ||||
| "search": "Search", | "search": "Search", | ||||
| "searchForm": "Search Form", | |||||
| "cancel": "Cancel", | "cancel": "Cancel", | ||||
| "extraMark": "Remarks", | "extraMark": "Remarks", | ||||
| "totalAmount": "Total Amount", | "totalAmount": "Total Amount", | ||||
| @@ -363,6 +365,16 @@ | |||||
| "loading": "Loading...", | "loading": "Loading...", | ||||
| "ok": "Ok", | "ok": "Ok", | ||||
| "organizationProfile": "Organization Profile", | |||||
| "organizationDetails": "Organization Details", | |||||
| "brNo": "BR No.", | |||||
| "creditorAccount": "Creditor account", | |||||
| "nameEng": "Name (Eng)", | |||||
| "nameChi": "Name (Ch)", | |||||
| "expiryDate": "Expiry date", | |||||
| "create": "Create", | |||||
| "confirmTo": "Confirm to ", | |||||
| "Dashboard": "Dashboard", | "Dashboard": "Dashboard", | ||||
| "event": "Event" | "event": "Event" | ||||
| } | } | ||||
| @@ -42,6 +42,7 @@ | |||||
| "registerFail": "申请失败,请稍后尝试", | "registerFail": "申请失败,请稍后尝试", | ||||
| "mainPage": "主页", | "mainPage": "主页", | ||||
| "publicNotice": "公共启事", | |||||
| "myPublicNotice": "我的公共启事", | "myPublicNotice": "我的公共启事", | ||||
| "publicNoticePayment": "公共启事:付款", | "publicNoticePayment": "公共启事:付款", | ||||
| "publicNoticePaymentFail": "公共启事:付款失败", | "publicNoticePaymentFail": "公共启事:付款失败", | ||||
| @@ -265,6 +266,7 @@ | |||||
| "contactPerson": "联络人", | "contactPerson": "联络人", | ||||
| "requireContactPerson": "请输入联络人", | "requireContactPerson": "请输入联络人", | ||||
| "search": "搜寻", | "search": "搜寻", | ||||
| "searchForm": "搜寻表格", | |||||
| "cancel": "取消", | "cancel": "取消", | ||||
| "extraMark": "备注", | "extraMark": "备注", | ||||
| "totalAmount": "总额", | "totalAmount": "总额", | ||||
| @@ -363,6 +365,16 @@ | |||||
| "loading": "加载中...", | "loading": "加载中...", | ||||
| "ok": "好的", | "ok": "好的", | ||||
| "organizationProfile": "机构资料", | |||||
| "organizationDetails": "机构详情", | |||||
| "brNo": "商业登记证号码", | |||||
| "creditorAccount": "债权人帐户", | |||||
| "nameEng": "姓名(英文)", | |||||
| "nameChi": "姓名(中文)", | |||||
| "expiryDate": "过期日期", | |||||
| "create": "创建", | |||||
| "confirmTo": "确定", | |||||
| "Dashboard": "仪表板", | "Dashboard": "仪表板", | ||||
| "event": "活动" | "event": "活动" | ||||
| } | } | ||||
| @@ -42,6 +42,7 @@ | |||||
| "registerFail": "申請失敗,請稍後嘗試", | "registerFail": "申請失敗,請稍後嘗試", | ||||
| "mainPage": "主頁", | "mainPage": "主頁", | ||||
| "publicNotice": "公共啟事", | |||||
| "myPublicNotice": "我的公共啟事", | "myPublicNotice": "我的公共啟事", | ||||
| "publicNoticePayment": "公共啟事:付款", | "publicNoticePayment": "公共啟事:付款", | ||||
| "publicNoticePaymentFail": "公共啟事:付款失敗", | "publicNoticePaymentFail": "公共啟事:付款失敗", | ||||
| @@ -265,6 +266,7 @@ | |||||
| "contactPerson": "聯絡人", | "contactPerson": "聯絡人", | ||||
| "requireContactPerson": "請輸入聯絡人", | "requireContactPerson": "請輸入聯絡人", | ||||
| "search": "搜尋", | "search": "搜尋", | ||||
| "searchForm": "搜尋表格", | |||||
| "cancel": "取消", | "cancel": "取消", | ||||
| "extraMark": "備註", | "extraMark": "備註", | ||||
| "totalAmount": "總額", | "totalAmount": "總額", | ||||
| @@ -363,6 +365,16 @@ | |||||
| "loading": "加載中...", | "loading": "加載中...", | ||||
| "ok": "好的", | "ok": "好的", | ||||
| "organizationProfile": "機構資料", | |||||
| "organizationDetails": "機構詳情", | |||||
| "brNo": "商業登記證號碼", | |||||
| "creditorAccount": "債權人帳戶", | |||||
| "nameEng": "姓名(英文)", | |||||
| "nameChi": "姓名(中文)", | |||||
| "expiryDate": "過期日期", | |||||
| "create": "創建", | |||||
| "confirmTo": "確定", | |||||
| "Dashboard": "儀表板", | "Dashboard": "儀表板", | ||||
| "event": "活動" | "event": "活動" | ||||
| } | } | ||||
| @@ -13,7 +13,7 @@ export const notNullFieldLabel = (label) => { | |||||
| export const getDateField = ({ label, valueName, form, disabled }) => { | export const getDateField = ({ label, valueName, form, disabled }) => { | ||||
| return <Grid container alignItems={"center"}> | return <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} sx={{ display: 'flex', alignItems: 'center' }}> | <Grid item xs={12} md={3} lg={3} sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <Typography variant="h5">{label}</Typography> | |||||
| <Typography variant="pnspsFormParagraphBold">{label}</Typography> | |||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={6} lg={6}> | <Grid item xs={12} md={6} lg={6}> | ||||
| {initField({ | {initField({ | ||||
| @@ -30,7 +30,7 @@ export const getTextField = ({ label, valueName, form, disabled }) => { | |||||
| return <Grid container alignItems={"center"} xs={12} sm={12} md={12} lg={12} sx={{mb:2}}> | return <Grid container alignItems={"center"} xs={12} sm={12} md={12} lg={12} sx={{mb:2}}> | ||||
| <Grid item xs={12} sm={12} md={3} lg={3} | <Grid item xs={12} sm={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <Typography variant="h5">{label}</Typography> | |||||
| <Typography variant="pnspsFormParagraphBold">{label}</Typography> | |||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} sm={12} md={6} lg={6}> | <Grid item xs={12} sm={12} md={6} lg={6}> | ||||
| {initField({ | {initField({ | ||||
| @@ -47,7 +47,7 @@ export const getTextArea = ({ label, valueName, form, disabled, inputProps, ...p | |||||
| return <Grid container alignItems={"center"}> | return <Grid container alignItems={"center"}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <Typography variant="h5">{label}</Typography> | |||||
| <Typography variant="pnspsFormParagraphBold">{label}</Typography> | |||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={6} lg={6}> | <Grid item xs={12} md={6} lg={6}> | ||||
| {initField({ | {initField({ | ||||
| @@ -74,7 +74,7 @@ export const getPhoneField = ({ label, valueName, form, disabled }) => { | |||||
| return <Grid container alignItems={"center"} sx={{mb:2}}> | return <Grid container alignItems={"center"} sx={{mb:2}}> | ||||
| <Grid item xs={12} md={3} lg={3} | <Grid item xs={12} md={3} lg={3} | ||||
| sx={{ display: 'flex', alignItems: 'center' }}> | sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <Typography variant="h5">{label}</Typography> | |||||
| <Typography variant="pnspsFormParagraphBold">{label}</Typography> | |||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={6} lg={6}> | <Grid item xs={12} md={6} lg={6}> | ||||
| <Stack direction="row"> | <Stack direction="row"> | ||||
| @@ -119,7 +119,7 @@ export const getAddressField = ({ label, valueName, form, disabled }) => { | |||||
| return <Grid container alignItems={"top"}> | return <Grid container alignItems={"top"}> | ||||
| <Grid item xs={12} md={3} lg={3} sx={{ display: 'flex', alignItems: 'top' }}> | <Grid item xs={12} md={3} lg={3} sx={{ display: 'flex', alignItems: 'top' }}> | ||||
| <Grid item lg={12} sx={{ alignItems: 'center' }}> | <Grid item lg={12} sx={{ alignItems: 'center' }}> | ||||
| <Typography variant="h5">{label}</Typography> | |||||
| <Typography variant="pnspsFormParagraphBold">{label}</Typography> | |||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={6} lg={6}> | <Grid item xs={12} md={6} lg={6}> | ||||
| @@ -154,7 +154,7 @@ export const getAddressField = ({ label, valueName, form, disabled }) => { | |||||
| export const getComboField = ({ label, dataList, valueName, form, disabled, getOptionLabel, onInputChange, onChange, filterOptions, ...props }) => { | export const getComboField = ({ label, dataList, valueName, form, disabled, getOptionLabel, onInputChange, onChange, filterOptions, ...props }) => { | ||||
| return <Grid container alignItems={"center"} sx={{mb:2}}> | return <Grid container alignItems={"center"} sx={{mb:2}}> | ||||
| <Grid item xs={12} md={3} lg={3} sx={{ display: 'flex', alignItems: 'center' }}> | <Grid item xs={12} md={3} lg={3} sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <Typography variant="h5">{label}</Typography> | |||||
| <Typography variant="pnspsFormParagraphBold">{label}</Typography> | |||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={6} lg={6}> | <Grid item xs={12} md={6} lg={6}> | ||||
| <Combo | <Combo | ||||