2022-09-08 17:21:17 +00:00
|
|
|
|
import * as React from "react";
|
2022-09-09 13:54:49 +00:00
|
|
|
|
import { Box, Typography, TextField, Button } from "@mui/material";
|
2022-09-08 17:21:17 +00:00
|
|
|
|
import Table from '@mui/material/Table';
|
2022-09-09 13:54:49 +00:00
|
|
|
|
import TableHead from '@mui/material/TableHead';
|
2022-09-08 17:21:17 +00:00
|
|
|
|
import TableBody from '@mui/material/TableBody';
|
|
|
|
|
import TableCell from '@mui/material/TableCell';
|
|
|
|
|
import TableRow from '@mui/material/TableRow';
|
2022-09-09 13:54:49 +00:00
|
|
|
|
import Radio from '@mui/material/Radio';
|
2022-09-08 17:21:17 +00:00
|
|
|
|
import theme from "../../theme";
|
2022-09-12 13:28:56 +00:00
|
|
|
|
import ModalWindow from "../ModalWindow";
|
2022-09-08 17:21:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Users: React.FC = () => {
|
2022-09-09 13:54:49 +00:00
|
|
|
|
const [selectedValue, setSelectedValue] = React.useState('a');
|
|
|
|
|
|
|
|
|
|
const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
|
|
|
setSelectedValue(event.target.value);
|
|
|
|
|
};
|
|
|
|
|
|
2022-09-08 17:21:17 +00:00
|
|
|
|
return (
|
|
|
|
|
<React.Fragment>
|
2022-09-12 13:28:56 +00:00
|
|
|
|
<Button
|
|
|
|
|
variant="text"
|
2022-09-08 17:21:17 +00:00
|
|
|
|
sx={{
|
|
|
|
|
width: "90%",
|
2022-09-12 10:32:05 +00:00
|
|
|
|
height: "60px",
|
2022-09-08 17:21:17 +00:00
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "column",
|
|
|
|
|
justifyContent: "center",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
border: "2px solid",
|
|
|
|
|
fontWeight: "normal",
|
2022-09-12 13:28:56 +00:00
|
|
|
|
borderColor: theme.palette.golden.main,
|
|
|
|
|
color: theme.palette.secondary.main
|
|
|
|
|
}} >
|
2022-09-08 17:21:17 +00:00
|
|
|
|
ИНФОРМАЦИЯ О ПРОЕКТЕ
|
2022-09-12 13:28:56 +00:00
|
|
|
|
</Button>
|
2022-09-08 17:21:17 +00:00
|
|
|
|
|
2022-09-09 13:54:49 +00:00
|
|
|
|
|
2022-09-08 17:21:17 +00:00
|
|
|
|
<Table sx={{
|
|
|
|
|
width: "90%",
|
|
|
|
|
border: "2px solid",
|
2022-09-09 13:54:49 +00:00
|
|
|
|
borderColor: theme.palette.secondary.main,
|
|
|
|
|
marginTop: "35px",
|
2022-09-08 17:21:17 +00:00
|
|
|
|
}} aria-label="simple table">
|
2022-09-09 13:54:49 +00:00
|
|
|
|
<TableHead>
|
|
|
|
|
<TableRow sx={{
|
|
|
|
|
borderBottom: "2px solid",
|
2022-09-12 10:32:05 +00:00
|
|
|
|
borderColor: theme.palette.grayLight.main,
|
2022-09-09 13:54:49 +00:00
|
|
|
|
height: "100px"
|
|
|
|
|
}}>
|
|
|
|
|
<TableCell>
|
|
|
|
|
<Typography
|
|
|
|
|
variant="h4"
|
|
|
|
|
sx={{
|
|
|
|
|
color: theme.palette.secondary.main,
|
|
|
|
|
}}>
|
|
|
|
|
Имя
|
|
|
|
|
</Typography>
|
|
|
|
|
</TableCell>
|
|
|
|
|
<TableCell>
|
|
|
|
|
<Typography
|
|
|
|
|
variant="h4"
|
|
|
|
|
sx={{
|
|
|
|
|
color: theme.palette.secondary.main,
|
|
|
|
|
}}>
|
|
|
|
|
Описание
|
|
|
|
|
</Typography>
|
|
|
|
|
</TableCell>
|
|
|
|
|
<TableCell>
|
|
|
|
|
<Typography
|
|
|
|
|
variant="h4"
|
|
|
|
|
sx={{
|
|
|
|
|
color: theme.palette.secondary.main,
|
|
|
|
|
}}>
|
|
|
|
|
Отобразить
|
|
|
|
|
</Typography>
|
|
|
|
|
</TableCell>
|
|
|
|
|
</TableRow>
|
|
|
|
|
</TableHead>
|
|
|
|
|
|
2022-09-08 17:21:17 +00:00
|
|
|
|
<TableBody>
|
2022-09-09 13:54:49 +00:00
|
|
|
|
<TableRow sx={{
|
|
|
|
|
borderBottom: "2px solid",
|
2022-09-12 10:32:05 +00:00
|
|
|
|
borderColor: theme.palette.grayLight.main,
|
2022-09-09 13:54:49 +00:00
|
|
|
|
height: "100px"
|
|
|
|
|
}}>
|
|
|
|
|
<TableCell>
|
|
|
|
|
<Typography sx={{
|
|
|
|
|
color: theme.palette.secondary.main
|
|
|
|
|
}}>
|
|
|
|
|
admin
|
|
|
|
|
</Typography>
|
2022-09-08 17:21:17 +00:00
|
|
|
|
</TableCell>
|
2022-09-09 13:54:49 +00:00
|
|
|
|
<TableCell>
|
|
|
|
|
<Typography sx={{
|
|
|
|
|
color: theme.palette.secondary.main
|
|
|
|
|
}}>
|
|
|
|
|
Администратор сервиса
|
|
|
|
|
</Typography>
|
2022-09-08 17:21:17 +00:00
|
|
|
|
</TableCell>
|
2022-09-09 13:54:49 +00:00
|
|
|
|
<TableCell>
|
|
|
|
|
<Radio
|
|
|
|
|
checked={selectedValue === 'a'}
|
|
|
|
|
onChange={handleChange}
|
|
|
|
|
value="a"
|
|
|
|
|
sx={{
|
|
|
|
|
'&, &.Mui-checked': {
|
|
|
|
|
color: theme.palette.secondary.main,
|
|
|
|
|
},
|
|
|
|
|
}} />
|
|
|
|
|
</TableCell>
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
|
|
<TableRow sx={{
|
|
|
|
|
borderBottom: "2px solid",
|
2022-09-12 10:32:05 +00:00
|
|
|
|
borderColor: theme.palette.grayLight.main,
|
2022-09-09 13:54:49 +00:00
|
|
|
|
height: "100px"
|
|
|
|
|
}}>
|
|
|
|
|
<TableCell>
|
|
|
|
|
<Typography sx={{
|
|
|
|
|
color: theme.palette.secondary.main
|
|
|
|
|
}}>
|
|
|
|
|
manager
|
|
|
|
|
</Typography>
|
|
|
|
|
</TableCell>
|
|
|
|
|
<TableCell>
|
|
|
|
|
<Typography sx={{
|
|
|
|
|
color: theme.palette.secondary.main
|
|
|
|
|
}}>
|
|
|
|
|
Менеджер сервиса
|
|
|
|
|
</Typography>
|
|
|
|
|
</TableCell>
|
|
|
|
|
<TableCell>
|
|
|
|
|
<Radio
|
|
|
|
|
checked={selectedValue === 'b'}
|
|
|
|
|
onChange={handleChange}
|
|
|
|
|
value="b"
|
|
|
|
|
sx={{
|
|
|
|
|
'&, &.Mui-checked': {
|
|
|
|
|
color: theme.palette.secondary.main,
|
|
|
|
|
},
|
|
|
|
|
}} />
|
|
|
|
|
</TableCell>
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
|
|
<TableRow sx={{
|
|
|
|
|
borderBottom: "1px solid",
|
|
|
|
|
border: theme.palette.secondary.main,
|
|
|
|
|
height: "100px"
|
|
|
|
|
}}>
|
|
|
|
|
<TableCell>
|
|
|
|
|
<Typography sx={{
|
|
|
|
|
color: theme.palette.secondary.main
|
|
|
|
|
}}>
|
|
|
|
|
user
|
|
|
|
|
</Typography>
|
|
|
|
|
</TableCell>
|
|
|
|
|
<TableCell>
|
|
|
|
|
<Typography sx={{
|
|
|
|
|
color: theme.palette.secondary.main
|
|
|
|
|
}}>
|
|
|
|
|
Пользователь сервиса
|
|
|
|
|
</Typography>
|
|
|
|
|
</TableCell>
|
|
|
|
|
<TableCell>
|
|
|
|
|
<Radio
|
|
|
|
|
checked={selectedValue === 'c'}
|
|
|
|
|
onChange={handleChange}
|
|
|
|
|
value="c"
|
|
|
|
|
sx={{
|
|
|
|
|
'&, &.Mui-checked': {
|
|
|
|
|
color: theme.palette.secondary.main,
|
|
|
|
|
},
|
|
|
|
|
}} />
|
2022-09-08 17:21:17 +00:00
|
|
|
|
</TableCell>
|
|
|
|
|
</TableRow>
|
|
|
|
|
</TableBody>
|
|
|
|
|
</Table>
|
2022-09-09 13:54:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Box sx={{
|
|
|
|
|
width: "90%",
|
|
|
|
|
marginTop: "35px"
|
|
|
|
|
}}>
|
|
|
|
|
<Box sx={{ display: "flex" }}>
|
|
|
|
|
<TextField
|
|
|
|
|
id = "standard-basic"
|
|
|
|
|
label = "id"
|
|
|
|
|
variant = "filled"
|
|
|
|
|
color = "secondary"
|
|
|
|
|
sx = {{
|
|
|
|
|
width: "80%"
|
|
|
|
|
}}
|
|
|
|
|
InputProps={{
|
|
|
|
|
style: {
|
|
|
|
|
backgroundColor: theme.palette.content.main,
|
|
|
|
|
color: theme.palette.secondary.main,
|
|
|
|
|
borderBottom: "1px solid",
|
2022-09-12 10:32:05 +00:00
|
|
|
|
borderColor: theme.palette.grayLight.main,
|
2022-09-09 13:54:49 +00:00
|
|
|
|
} }}
|
|
|
|
|
InputLabelProps={{
|
|
|
|
|
style: {
|
|
|
|
|
color: theme.palette.secondary.main
|
|
|
|
|
} }}
|
|
|
|
|
/>
|
|
|
|
|
<Button
|
|
|
|
|
variant = "text"
|
|
|
|
|
sx={{
|
|
|
|
|
backgroundColor: theme.palette.content.main,
|
|
|
|
|
color: theme.palette.secondary.main,
|
|
|
|
|
width: "20%",
|
|
|
|
|
"&:hover": {
|
|
|
|
|
backgroundColor: theme.palette.content.main
|
|
|
|
|
}
|
|
|
|
|
}}>
|
|
|
|
|
НАЙТИ
|
|
|
|
|
</Button>
|
|
|
|
|
</Box>
|
|
|
|
|
|
|
|
|
|
<Box sx={{ display: "flex" }}>
|
|
|
|
|
<TextField
|
|
|
|
|
id = "standard-basic"
|
|
|
|
|
label = "mail"
|
|
|
|
|
variant = "filled"
|
|
|
|
|
color = "secondary"
|
|
|
|
|
sx = {{
|
|
|
|
|
width: "80%"
|
|
|
|
|
}}
|
|
|
|
|
InputProps={{
|
|
|
|
|
style: {
|
|
|
|
|
backgroundColor: theme.palette.content.main,
|
|
|
|
|
color: theme.palette.secondary.main,
|
|
|
|
|
borderBottom: "1px solid",
|
2022-09-12 10:32:05 +00:00
|
|
|
|
borderColor: theme.palette.grayLight.main,
|
2022-09-09 13:54:49 +00:00
|
|
|
|
} }}
|
|
|
|
|
InputLabelProps={{
|
|
|
|
|
style: {
|
|
|
|
|
color: theme.palette.secondary.main
|
|
|
|
|
} }}
|
|
|
|
|
/>
|
|
|
|
|
<Button
|
|
|
|
|
variant = "text"
|
|
|
|
|
sx={{
|
|
|
|
|
backgroundColor: theme.palette.content.main,
|
|
|
|
|
color: theme.palette.secondary.main,
|
|
|
|
|
width: "20%",
|
|
|
|
|
"&:hover": {
|
|
|
|
|
backgroundColor: theme.palette.content.main
|
|
|
|
|
}
|
|
|
|
|
}}>
|
2022-09-10 18:39:16 +00:00
|
|
|
|
СБРОСИТЬ
|
2022-09-09 13:54:49 +00:00
|
|
|
|
</Button>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
2022-09-08 17:21:17 +00:00
|
|
|
|
</React.Fragment>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default Users;
|