maintenance create
This commit is contained in:
1 parent
8571ccea78
commit
db8ed2994a
1 file changed
+9
-9
@@ -3,6 +3,7 @@ import MenuItem from "@mui/material/MenuItem";
|
|||||||
import { logger } from "@/Utils/logger";
|
import { logger } from "@/Utils/logger";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import IconButton from "@mui/material/IconButton";
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
import { SPACING, LAYOUT } from "@/Utils/Theme/constants";
|
||||||
import { BasePage, ConfigBox } from "@/Components/design-elements";
|
import { BasePage, ConfigBox } from "@/Components/design-elements";
|
||||||
import {
|
import {
|
||||||
TextField,
|
TextField,
|
||||||
@@ -121,7 +122,7 @@ const CreateMaintenanceWindowPage = () => {
|
|||||||
title={t("pages.maintenanceWindow.form.general.title")}
|
title={t("pages.maintenanceWindow.form.general.title")}
|
||||||
subtitle={t("pages.maintenanceWindow.form.general.description")}
|
subtitle={t("pages.maintenanceWindow.form.general.description")}
|
||||||
rightContent={
|
rightContent={
|
||||||
<Stack spacing={theme.spacing(8)}>
|
<Stack spacing={theme.spacing(LAYOUT.MD)}>
|
||||||
<Controller
|
<Controller
|
||||||
name="name"
|
name="name"
|
||||||
control={control}
|
control={control}
|
||||||
@@ -171,7 +172,7 @@ const CreateMaintenanceWindowPage = () => {
|
|||||||
title={t("pages.maintenanceWindow.form.startDate.title")}
|
title={t("pages.maintenanceWindow.form.startDate.title")}
|
||||||
subtitle={t("pages.maintenanceWindow.form.startDate.description")}
|
subtitle={t("pages.maintenanceWindow.form.startDate.description")}
|
||||||
rightContent={
|
rightContent={
|
||||||
<Stack spacing={theme.spacing(8)}>
|
<Stack spacing={theme.spacing(LAYOUT.MD)}>
|
||||||
<Controller
|
<Controller
|
||||||
name="startDate"
|
name="startDate"
|
||||||
control={control}
|
control={control}
|
||||||
@@ -198,7 +199,7 @@ const CreateMaintenanceWindowPage = () => {
|
|||||||
title={t("pages.maintenanceWindow.form.startTime.title")}
|
title={t("pages.maintenanceWindow.form.startTime.title")}
|
||||||
subtitle={t("pages.maintenanceWindow.form.startTime.description")}
|
subtitle={t("pages.maintenanceWindow.form.startTime.description")}
|
||||||
rightContent={
|
rightContent={
|
||||||
<Stack spacing={theme.spacing(8)}>
|
<Stack spacing={theme.spacing(LAYOUT.MD)}>
|
||||||
<Controller
|
<Controller
|
||||||
name="startTime"
|
name="startTime"
|
||||||
control={control}
|
control={control}
|
||||||
@@ -219,7 +220,7 @@ const CreateMaintenanceWindowPage = () => {
|
|||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
alignItems="flex-start"
|
alignItems="flex-start"
|
||||||
spacing={theme.spacing(4)}
|
spacing={theme.spacing(LAYOUT.MD)}
|
||||||
>
|
>
|
||||||
<Controller
|
<Controller
|
||||||
name="duration"
|
name="duration"
|
||||||
@@ -284,7 +285,7 @@ const CreateMaintenanceWindowPage = () => {
|
|||||||
.filter((m): m is Monitor => m !== undefined);
|
.filter((m): m is Monitor => m !== undefined);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack spacing={theme.spacing(4)}>
|
<Stack spacing={theme.spacing(LAYOUT.MD)}>
|
||||||
<Autocomplete
|
<Autocomplete
|
||||||
multiple
|
multiple
|
||||||
options={monitorsList}
|
options={monitorsList}
|
||||||
@@ -318,9 +319,8 @@ const CreateMaintenanceWindowPage = () => {
|
|||||||
key={monitor.id}
|
key={monitor.id}
|
||||||
direction="row"
|
direction="row"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
spacing={theme.spacing(4)}
|
padding={theme.spacing(LAYOUT.XS)}
|
||||||
padding={theme.spacing(4)}
|
marginTop={theme.spacing(SPACING.LG)}
|
||||||
marginTop={theme.spacing(2)}
|
|
||||||
borderRadius={1}
|
borderRadius={1}
|
||||||
sx={{
|
sx={{
|
||||||
border: `1px solid ${theme.palette.divider}`,
|
border: `1px solid ${theme.palette.divider}`,
|
||||||
@@ -351,7 +351,7 @@ const CreateMaintenanceWindowPage = () => {
|
|||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
justifyContent="flex-end"
|
justifyContent="flex-end"
|
||||||
spacing={theme.spacing(2)}
|
spacing={theme.spacing(SPACING.LG)}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
loading={isLoading}
|
loading={isLoading}
|
||||||
|
|||||||
Reference in new issue
Block a user