From f33581438e302b3fa9238963a0a6daae295d7066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20Kj=C3=A6rg=C3=A5rd?= Date: Thu, 5 Jun 2025 17:18:44 +0200 Subject: [PATCH 1/2] Add equipment pages move some stuff around and make the page work refactor: rename Calendar Properties to Booking Information and reorganize form layout feat: add standardTime field to timezone entries for improved clarity refactor: replace timezone options creation with imported timezone list and update related components refactor: remove location field and adjust grid sizes for improved layout move equipment page move files remove paths refactor: remove unused fields from equipment mailbox form and adjust grid sizes --- src/data/timezoneList.json | 333 ++++++++----- src/layouts/config.js | 1 + .../resources/management/equipment/add.jsx | 83 ++++ .../resources/management/equipment/edit.jsx | 436 ++++++++++++++++++ .../resources/management/equipment/index.js | 83 ++++ .../resources/management/list-rooms/edit.jsx | 311 +++---------- 6 files changed, 889 insertions(+), 358 deletions(-) create mode 100644 src/pages/email/resources/management/equipment/add.jsx create mode 100644 src/pages/email/resources/management/equipment/edit.jsx create mode 100644 src/pages/email/resources/management/equipment/index.js diff --git a/src/data/timezoneList.json b/src/data/timezoneList.json index 57238fe7eedc..d2501fca5bca 100644 --- a/src/data/timezoneList.json +++ b/src/data/timezoneList.json @@ -1,335 +1,446 @@ [ { - "timezone": "(UTC-12:00) International Date Line West" + "timezone": "(UTC-12:00) International Date Line West", + "standardTime": "Dateline Standard Time" }, { - "timezone": "(UTC-11:00) Coordinated Universal Time-11" + "timezone": "(UTC-11:00) Coordinated Universal Time-11", + "standardTime": "UTC-11" }, { - "timezone": "(UTC-10:00) Hawaii" + "timezone": "(UTC-10:00) Hawaii", + "standardTime": "Hawaiian Standard Time" }, { - "timezone": "(UTC-09:00) Alaska" + "timezone": "(UTC-09:00) Alaska", + "standardTime": "Alaskan Standard Time" }, { - "timezone": "(UTC-08:00) Baja California" + "timezone": "(UTC-08:00) Baja California", + "standardTime": "Pacific Standard Time (Mexico)" }, { - "timezone": "(UTC-08:00) Pacific Time (US and Canada)" + "timezone": "(UTC-08:00) Pacific Time (US and Canada)", + "standardTime": "Pacific Standard Time" }, { - "timezone": "(UTC-07:00) Arizona" + "timezone": "(UTC-07:00) Arizona", + "standardTime": "US Mountain Standard Time" }, { - "timezone": "(UTC-07:00) Chihuahua, La Paz, Mazatlan" + "timezone": "(UTC-07:00) Chihuahua, La Paz, Mazatlan", + "standardTime": "Mountain Standard Time (Mexico)" }, { - "timezone": "(UTC-07:00) Mountain Time (US and Canada)" + "timezone": "(UTC-07:00) Mountain Time (US and Canada)", + "standardTime": "Mountain Standard Time" }, { - "timezone": "(UTC-06:00) Central America" + "timezone": "(UTC-06:00) Central America", + "standardTime": "Central America Standard Time" }, { - "timezone": "(UTC-06:00) Central Time (US and Canada)" + "timezone": "(UTC-06:00) Central Time (US and Canada)", + "standardTime": "Central Standard Time" }, { - "timezone": "(UTC-06:00) Guadalajara, Mexico City, Monterrey" + "timezone": "(UTC-06:00) Guadalajara, Mexico City, Monterrey", + "standardTime": "Central Standard Time (Mexico)" }, { - "timezone": "(UTC-06:00) Saskatchewan" + "timezone": "(UTC-06:00) Saskatchewan", + "standardTime": "Canada Central Standard Time" }, { - "timezone": "(UTC-05:00) Bogota, Lima, Quito" + "timezone": "(UTC-05:00) Bogota, Lima, Quito", + "standardTime": "SA Pacific Standard Time" }, { - "timezone": "(UTC-05:00) Eastern Time (US and Canada)" + "timezone": "(UTC-05:00) Eastern Time (US and Canada)", + "standardTime": "Eastern Standard Time" }, { - "timezone": "(UTC-05:00) Indiana (East)" + "timezone": "(UTC-05:00) Indiana (East)", + "standardTime": "US Eastern Standard Time" }, { - "timezone": "(UTC-04:30) Caracas" + "timezone": "(UTC-04:30) Caracas", + "standardTime": "Venezuela Standard Time" }, { - "timezone": "(UTC-04:00) Asuncion" + "timezone": "(UTC-04:00) Asuncion", + "standardTime": "Paraguay Standard Time" }, { - "timezone": "(UTC-04:00) Atlantic Time (Canada)" + "timezone": "(UTC-04:00) Atlantic Time (Canada)", + "standardTime": "Atlantic Standard Time" }, { - "timezone": "(UTC-04:00) Cuiaba" + "timezone": "(UTC-04:00) Cuiaba", + "standardTime": "Central Brazilian Standard Time" }, { - "timezone": "(UTC-04:00) Georgetown, La Paz, Manaus, San Juan" + "timezone": "(UTC-04:00) Georgetown, La Paz, Manaus, San Juan", + "standardTime": "SA Western Standard Time" }, { - "timezone": "(UTC-04:00) Santiago" + "timezone": "(UTC-04:00) Santiago", + "standardTime": "Pacific SA Standard Time" }, { - "timezone": "(UTC-03:30) Newfoundland" + "timezone": "(UTC-03:30) Newfoundland", + "standardTime": "Newfoundland Standard Time" }, { - "timezone": "(UTC-03:00) Brasilia" + "timezone": "(UTC-03:00) Brasilia", + "standardTime": "E. South America Standard Time" }, { - "timezone": "(UTC-03:00) Buenos Aires" + "timezone": "(UTC-03:00) Buenos Aires", + "standardTime": "Argentina Standard Time" }, { - "timezone": "(UTC-03:00) Cayenne, Fortaleza" + "timezone": "(UTC-03:00) Cayenne, Fortaleza", + "standardTime": "SA Eastern Standard Time" }, { - "timezone": "(UTC-03:00) Greenland" + "timezone": "(UTC-03:00) Greenland", + "standardTime": "Greenland Standard Time" }, { - "timezone": "(UTC-03:00) Montevideo" + "timezone": "(UTC-03:00) Montevideo", + "standardTime": "Montevideo Standard Time" }, { - "timezone": "(UTC-03:00) Salvador" + "timezone": "(UTC-03:00) Salvador", + "standardTime": "Bahia Standard Time" }, { - "timezone": "(UTC-02:00) Coordinated Universal Time-02" + "timezone": "(UTC-02:00) Coordinated Universal Time-02", + "standardTime": "UTC-02" }, { - "timezone": "(UTC-02:00) Mid-Atlantic" + "timezone": "(UTC-02:00) Mid-Atlantic", + "standardTime": "Mid-Atlantic Standard Time" }, { - "timezone": "(UTC-01:00) Azores" + "timezone": "(UTC-01:00) Azores", + "standardTime": "Azores Standard Time" }, { - "timezone": "(UTC-01:00) Cabo Verde" + "timezone": "(UTC-01:00) Cabo Verde", + "standardTime": "Cape Verde Standard Time" }, { - "timezone": "(UTC) Casablanca" + "timezone": "(UTC) Casablanca", + "standardTime": "Morocco Standard Time" }, { - "timezone": "(UTC) Coordinated Universal Time" + "timezone": "(UTC) Coordinated Universal Time", + "standardTime": "UTC" }, { - "timezone": "(UTC) Dublin, Edinburgh, Lisbon, London" + "timezone": "(UTC) Dublin, Edinburgh, Lisbon, London", + "standardTime": "GMT Standard Time" }, { - "timezone": "(UTC) Monrovia, Reykjavik" + "timezone": "(UTC) Monrovia, Reykjavik", + "standardTime": "Greenwich Standard Time" }, { - "timezone": "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna" + "timezone": "(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna", + "standardTime": "W. Europe Standard Time" }, { - "timezone": "(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague" + "timezone": "(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague", + "standardTime": "Central Europe Standard Time" }, { - "timezone": "(UTC+01:00) Brussels, Copenhagen, Madrid, Paris" + "timezone": "(UTC+01:00) Brussels, Copenhagen, Madrid, Paris", + "standardTime": "Romance Standard Time" }, { - "timezone": "(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb" + "timezone": "(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb", + "standardTime": "Central European Standard Time" }, { - "timezone": "(UTC+01:00) West Central Africa" + "timezone": "(UTC+01:00) West Central Africa", + "standardTime": "W. Central Africa Standard Time" }, { - "timezone": "(UTC+01:00) Windhoek" + "timezone": "(UTC+01:00) Windhoek", + "standardTime": "Namibia Standard Time" }, { - "timezone": "(UTC+02:00) Amman" + "timezone": "(UTC+02:00) Amman", + "standardTime": "Jordan Standard Time" }, { - "timezone": "(UTC+02:00) Athens, Bucharest" + "timezone": "(UTC+02:00) Athens, Bucharest", + "standardTime": "GTB Standard Time" }, { - "timezone": "(UTC+02:00) Beirut" + "timezone": "(UTC+02:00) Beirut", + "standardTime": "Middle East Standard Time" }, { - "timezone": "(UTC+02:00) Cairo" + "timezone": "(UTC+02:00) Cairo", + "standardTime": "Egypt Standard Time" }, { - "timezone": "(UTC+02:00) Damascus" + "timezone": "(UTC+02:00) Damascus", + "standardTime": "Syria Standard Time" }, { - "timezone": "(UTC+02:00) Harare, Pretoria" + "timezone": "(UTC+02:00) Harare, Pretoria", + "standardTime": "South Africa Standard Time" }, { - "timezone": "(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius" + "timezone": "(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius", + "standardTime": "FLE Standard Time" }, { - "timezone": "(UTC+02:00) Jerusalem" + "timezone": "(UTC+02:00) Jerusalem", + "standardTime": "Israel Standard Time" }, { - "timezone": "(UTC+02:00) Minsk (old)" + "timezone": "(UTC+02:00) Minsk (old)", + "standardTime": "Belarus Standard Time" }, { - "timezone": "(UTC+02:00) E. Europe" + "timezone": "(UTC+02:00) E. Europe", + "standardTime": "E. Europe Standard Time" }, { - "timezone": "(UTC+02:00) Kaliningrad" + "timezone": "(UTC+02:00) Kaliningrad", + "standardTime": "Kaliningrad Standard Time" }, { - "timezone": "(UTC+03:00) Baghdad" + "timezone": "(UTC+03:00) Baghdad", + "standardTime": "Arabic Standard Time" }, { - "timezone": "(UTC+03:00) Istanbul" + "timezone": "(UTC+03:00) Istanbul", + "standardTime": "Turkey Standard Time" }, { - "timezone": "(UTC+03:00) Kuwait, Riyadh" + "timezone": "(UTC+03:00) Kuwait, Riyadh", + "standardTime": "Arab Standard Time" }, { - "timezone": "(UTC+03:00) Minsk" + "timezone": "(UTC+03:00) Minsk", + "standardTime": "Belarus Standard Time" }, { - "timezone": "(UTC+03:00) Moscow, St. Petersburg, Volgograd" + "timezone": "(UTC+03:00) Moscow, St. Petersburg, Volgograd", + "standardTime": "Russian Standard Time" }, { - "timezone": "(UTC+03:00) Nairobi" + "timezone": "(UTC+03:00) Nairobi", + "standardTime": "E. Africa Standard Time" }, { - "timezone": "(UTC+03:30) Tehran" + "timezone": "(UTC+03:30) Tehran", + "standardTime": "Iran Standard Time" }, { - "timezone": "(UTC+04:00) Abu Dhabi, Muscat" + "timezone": "(UTC+04:00) Abu Dhabi, Muscat", + "standardTime": "Arabian Standard Time" }, { - "timezone": "(UTC+04:00) Astrakhan, Ulyanovsk" + "timezone": "(UTC+04:00) Astrakhan, Ulyanovsk", + "standardTime": "Astrakhan Standard Time" }, { - "timezone": "(UTC+04:00) Baku" + "timezone": "(UTC+04:00) Baku", + "standardTime": "Azerbaijan Standard Time" }, { - "timezone": "(UTC+04:00) Izhevsk, Samara" + "timezone": "(UTC+04:00) Izhevsk, Samara", + "standardTime": "Russia Time Zone 3" }, { - "timezone": "(UTC+04:00) Port Louis" + "timezone": "(UTC+04:00) Port Louis", + "standardTime": "Mauritius Standard Time" }, { - "timezone": "(UTC+04:00) Tbilisi" + "timezone": "(UTC+04:00) Tbilisi", + "standardTime": "Georgian Standard Time" }, { - "timezone": "(UTC+04:00) Yerevan" + "timezone": "(UTC+04:00) Yerevan", + "standardTime": "Caucasus Standard Time" }, { - "timezone": "(UTC+04:30) Kabul" + "timezone": "(UTC+04:30) Kabul", + "standardTime": "Afghanistan Standard Time" }, { - "timezone": "(UTC+05:00) Ekaterinburg" + "timezone": "(UTC+05:00) Ekaterinburg", + "standardTime": "Ekaterinburg Standard Time" }, { - "timezone": "(UTC+05:00) Islamabad, Karachi" + "timezone": "(UTC+05:00) Islamabad, Karachi", + "standardTime": "Pakistan Standard Time" }, { - "timezone": "(UTC+05:00) Tashkent" + "timezone": "(UTC+05:00) Tashkent", + "standardTime": "West Asia Standard Time" }, { - "timezone": "(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi" + "timezone": "(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi", + "standardTime": "India Standard Time" }, { - "timezone": "(UTC+05:30) Sri Jayawardenepura" + "timezone": "(UTC+05:30) Sri Jayawardenepura", + "standardTime": "Sri Lanka Standard Time" }, { - "timezone": "(UTC+05:45) Kathmandu" + "timezone": "(UTC+05:45) Kathmandu", + "standardTime": "Nepal Standard Time" }, { - "timezone": "(UTC+06:00) Astana" + "timezone": "(UTC+06:00) Astana", + "standardTime": "Qyzylorda Standard Time" }, { - "timezone": "(UTC+06:00) Dhaka" + "timezone": "(UTC+06:00) Dhaka", + "standardTime": "Bangladesh Standard Time" }, { - "timezone": "(UTC+06:00) Omsk" + "timezone": "(UTC+06:00) Omsk", + "standardTime": "Omsk Standard Time" }, { - "timezone": "(UTC+06:30) Yangon (Rangoon)" + "timezone": "(UTC+06:30) Yangon (Rangoon)", + "standardTime": "Myanmar Standard Time" }, { - "timezone": "(UTC+07:00) Bangkok, Hanoi, Jakarta" + "timezone": "(UTC+07:00) Bangkok, Hanoi, Jakarta", + "standardTime": "SE Asia Standard Time" }, { - "timezone": "(UTC+07:00) Barnaul, Gorno-Altaysk" + "timezone": "(UTC+07:00) Barnaul, Gorno-Altaysk", + "standardTime": "Altai Standard Time" }, { - "timezone": "(UTC+07:00) Krasnoyarsk" + "timezone": "(UTC+07:00) Krasnoyarsk", + "standardTime": "North Asia Standard Time" }, { - "timezone": "(UTC+07:00) Novosibirsk" + "timezone": "(UTC+07:00) Novosibirsk", + "standardTime": "N. Central Asia Standard Time" }, { - "timezone": "(UTC+07:00) Tomsk" + "timezone": "(UTC+07:00) Tomsk", + "standardTime": "Tomsk Standard Time" }, { - "timezone": "(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi" + "timezone": "(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi", + "standardTime": "China Standard Time" }, { - "timezone": "(UTC+08:00) Irkutsk" + "timezone": "(UTC+08:00) Irkutsk", + "standardTime": "North Asia East Standard Time" }, { - "timezone": "(UTC+08:00) Kuala Lumpur, Singapore" + "timezone": "(UTC+08:00) Kuala Lumpur, Singapore", + "standardTime": "Singapore Standard Time" }, { - "timezone": "(UTC+08:00) Perth" + "timezone": "(UTC+08:00) Perth", + "standardTime": "W. Australia Standard Time" }, { - "timezone": "(UTC+08:00) Taipei" + "timezone": "(UTC+08:00) Taipei", + "standardTime": "Taipei Standard Time" }, { - "timezone": "(UTC+08:00) Ulaanbaatar" + "timezone": "(UTC+08:00) Ulaanbaatar", + "standardTime": "Ulaanbaatar Standard Time" }, { - "timezone": "(UTC+09:00) Osaka, Sapporo, Tokyo" + "timezone": "(UTC+09:00) Osaka, Sapporo, Tokyo", + "standardTime": "Tokyo Standard Time" }, { - "timezone": "(UTC+09:00) Seoul" + "timezone": "(UTC+09:00) Seoul", + "standardTime": "Korea Standard Time" }, { - "timezone": "(UTC+09:00) Yakutsk" + "timezone": "(UTC+09:00) Yakutsk", + "standardTime": "Yakutsk Standard Time" }, { - "timezone": "(UTC+09:30) Adelaide" + "timezone": "(UTC+09:30) Adelaide", + "standardTime": "Cen. Australia Standard Time" }, { - "timezone": "(UTC+09:30) Darwin" + "timezone": "(UTC+09:30) Darwin", + "standardTime": "AUS Central Standard Time" }, { - "timezone": "(UTC+10:00) Brisbane" + "timezone": "(UTC+10:00) Brisbane", + "standardTime": "E. Australia Standard Time" }, { - "timezone": "(UTC+10:00) Canberra, Melbourne, Sydney" + "timezone": "(UTC+10:00) Canberra, Melbourne, Sydney", + "standardTime": "AUS Eastern Standard Time" }, { - "timezone": "(UTC+10:00) Guam, Port Moresby" + "timezone": "(UTC+10:00) Guam, Port Moresby", + "standardTime": "West Pacific Standard Time" }, { - "timezone": "(UTC+10:00) Hobart" + "timezone": "(UTC+10:00) Hobart", + "standardTime": "Tasmania Standard Time" }, { - "timezone": "(UTC+10:00) Magadan" + "timezone": "(UTC+10:00) Magadan", + "standardTime": "Magadan Standard Time" }, { - "timezone": "(UTC+10:00) Vladivostok" + "timezone": "(UTC+10:00) Vladivostok", + "standardTime": "Vladivostok Standard Time" }, { - "timezone": "(UTC+11:00) Chokurdakh" + "timezone": "(UTC+11:00) Chokurdakh", + "standardTime": "Russia Time Zone 10" }, { - "timezone": "(UTC+11:00) Sakhalin" + "timezone": "(UTC+11:00) Sakhalin", + "standardTime": "Sakhalin Standard Time" }, { - "timezone": "(UTC+11:00) Solomon Is., New Caledonia" + "timezone": "(UTC+11:00) Solomon Is., New Caledonia", + "standardTime": "Central Pacific Standard Time" }, { - "timezone": "(UTC+12:00) Anadyr, Petropavlovsk-Kamchatsky" + "timezone": "(UTC+12:00) Anadyr, Petropavlovsk-Kamchatsky", + "standardTime": "Russia Time Zone 11" }, { - "timezone": "(UTC+12:00) Auckland, Wellington" + "timezone": "(UTC+12:00) Auckland, Wellington", + "standardTime": "New Zealand Standard Time" }, { - "timezone": "(UTC+12:00) Coordinated Universal Time+12" + "timezone": "(UTC+12:00) Coordinated Universal Time+12", + "standardTime": "UTC+12" }, { - "timezone": "(UTC+12:00) Fiji" + "timezone": "(UTC+12:00) Fiji", + "standardTime": "Fiji Standard Time" }, { - "timezone": "(UTC+12:00) Petropavlovsk-Kamchatsky - Old" + "timezone": "(UTC+12:00) Petropavlovsk-Kamchatsky - Old", + "standardTime": "Kamchatka Standard Time" }, { - "timezone": "(UTC+13:00) Nuku'alofa" + "timezone": "(UTC+13:00) Nuku'alofa", + "standardTime": "Tonga Standard Time" }, { - "timezone": "(UTC+13:00) Samoa" + "timezone": "(UTC+13:00) Samoa", + "standardTime": "Samoa Standard Time" } ] diff --git a/src/layouts/config.js b/src/layouts/config.js index c853befc8a08..b6bd8319ff01 100644 --- a/src/layouts/config.js +++ b/src/layouts/config.js @@ -352,6 +352,7 @@ export const nativeMenuItems = [ title: "Resource Management", path: "/email/resources/management", items: [ + { title: "Equipment", path: "/email/resources/management/equipment" }, { title: "Rooms", path: "/email/resources/management/list-rooms" }, { title: "Room Lists", path: "/email/resources/management/room-lists" }, ], diff --git a/src/pages/email/resources/management/equipment/add.jsx b/src/pages/email/resources/management/equipment/add.jsx new file mode 100644 index 000000000000..09be3044b121 --- /dev/null +++ b/src/pages/email/resources/management/equipment/add.jsx @@ -0,0 +1,83 @@ +import React from "react"; +import { Divider } from "@mui/material"; +import { Grid } from "@mui/system"; +import { useForm } from "react-hook-form"; +import { Layout as DashboardLayout } from "/src/layouts/index.js"; +import CippFormPage from "/src/components/CippFormPages/CippFormPage"; +import CippFormComponent from "/src/components/CippComponents/CippFormComponent"; +import { CippFormDomainSelector } from "/src/components/CippComponents/CippFormDomainSelector"; +import { useSettings } from "/src/hooks/use-settings"; + +const AddEquipmentMailbox = () => { + const tenantDomain = useSettings().currentTenant; + const formControl = useForm({ + mode: "onChange", + defaultValues: { + displayName: "", + username: "", + domain: null, + location: "", + department: "", + company: "", + }, + }); + + return ( + { + const shippedValues = { + tenantID: tenantDomain, + domain: values.domain?.value, + displayName: values.displayName.trim(), + username: values.username.trim(), + userPrincipalName: values.username.trim() + "@" + (values.domain?.value || "").trim(), + }; + + return shippedValues; + }} + > + + {/* Display Name */} + + + + + + + {/* Username and Domain */} + + + + + + + + + ); +}; + +AddEquipmentMailbox.getLayout = (page) => {page}; + +export default AddEquipmentMailbox; diff --git a/src/pages/email/resources/management/equipment/edit.jsx b/src/pages/email/resources/management/equipment/edit.jsx new file mode 100644 index 000000000000..d5e8fa58cda1 --- /dev/null +++ b/src/pages/email/resources/management/equipment/edit.jsx @@ -0,0 +1,436 @@ +import React, { useEffect } from "react"; +import { Divider, Typography } from "@mui/material"; +import { Grid } from "@mui/system"; +import { useForm } from "react-hook-form"; +import { Layout as DashboardLayout } from "/src/layouts/index.js"; +import CippFormPage from "/src/components/CippFormPages/CippFormPage"; +import CippFormComponent from "/src/components/CippComponents/CippFormComponent"; +import { useSettings } from "/src/hooks/use-settings"; +import { useRouter } from "next/router"; +import { ApiGetCall } from "/src/api/ApiCall"; +import countryList from "/src/data/countryList.json"; +import timezoneList from "/src/data/timezoneList.json"; + +// Work days options +const workDaysOptions = [ + { value: "Sunday", label: "Sunday" }, + { value: "Monday", label: "Monday" }, + { value: "Tuesday", label: "Tuesday" }, + { value: "Wednesday", label: "Wednesday" }, + { value: "Thursday", label: "Thursday" }, + { value: "Friday", label: "Friday" }, + { value: "Saturday", label: "Saturday" }, + { value: "WeekDay", label: "Weekdays (Monday-Friday)" }, + { value: "WeekendDay", label: "Weekend (Saturday-Sunday)" }, + { value: "AllDays", label: "All Days" }, +]; + +// Automation Processing Options +const automateProcessingOptions = [ + { value: "None", label: "None - No processing" }, + { value: "AutoUpdate", label: "AutoUpdate - Accept/Decline but not delete" }, + { value: "AutoAccept", label: "AutoAccept - Accept and delete" }, +]; + +const EditEquipmentMailbox = () => { + const router = useRouter(); + const { equipmentId } = router.query; + const tenantDomain = useSettings().currentTenant; + const formControl = useForm({ + mode: "onChange", + }); + + const equipmentInfo = ApiGetCall({ + url: `/api/ListEquipment?EquipmentId=${equipmentId}&tenantFilter=${tenantDomain}`, + queryKey: `Equipment-${equipmentId}`, + waiting: false, + }); + + useEffect(() => { + if (equipmentInfo.isSuccess && equipmentInfo.data?.[0]) { + const equipment = equipmentInfo.data[0]; + formControl.reset({ + // Core Properties + displayName: equipment.displayName, + hiddenFromAddressListsEnabled: equipment.hiddenFromAddressListsEnabled, + + // Equipment Details + department: equipment.department, + company: equipment.company, + + // Location Information + streetAddress: equipment.streetAddress, + city: equipment.city, + stateOrProvince: equipment.stateOrProvince, + postalCode: equipment.postalCode, + countryOrRegion: equipment.countryOrRegion + ? countryList.find((c) => c.Name === equipment.countryOrRegion)?.Code || "" + : "", + phone: equipment.phone, + tags: equipment.tags?.map((tag) => ({ label: tag, value: tag })) || [], + + // Booking Information + allowConflicts: equipment.allowConflicts, + allowRecurringMeetings: equipment.allowRecurringMeetings, + bookingWindowInDays: equipment.bookingWindowInDays, + maximumDurationInMinutes: equipment.maximumDurationInMinutes, + processExternalMeetingMessages: equipment.processExternalMeetingMessages, + forwardRequestsToDelegates: equipment.forwardRequestsToDelegates, + scheduleOnlyDuringWorkHours: equipment.scheduleOnlyDuringWorkHours, + automateProcessing: equipment.automateProcessing, + + // Calendar Configuration + workDays: + equipment.workDays?.split(",")?.map((day) => ({ + label: day.trim(), + value: day.trim(), + })) || [], + workHoursStartTime: equipment.workHoursStartTime, + workHoursEndTime: equipment.workHoursEndTime, + workingHoursTimeZone: equipment.workingHoursTimeZone + ? { + value: equipment.workingHoursTimeZone, + label: timezoneList.find((tz) => tz.standardTime === equipment.workingHoursTimeZone) + ? `${equipment.workingHoursTimeZone} - ${ + timezoneList.find((tz) => tz.standardTime === equipment.workingHoursTimeZone) + ?.timezone + }` + : equipment.workingHoursTimeZone, + } + : null, + }); + } + }, [equipmentInfo.isSuccess, equipmentInfo.data]); + + useEffect(() => { + if (equipmentId) { + equipmentInfo.refetch(); + } + }, [router.query, equipmentId, tenantDomain]); + + return ( + ({ + tenantID: tenantDomain, + equipmentId: equipmentId, + displayName: values.displayName?.trim(), + hiddenFromAddressListsEnabled: values.hiddenFromAddressListsEnabled, + + // Equipment Details + department: values.department?.trim(), + company: values.company?.trim(), + + // Location Information + streetAddress: values.streetAddress?.trim(), + city: values.city?.trim(), + stateOrProvince: values.stateOrProvince?.trim(), + postalCode: values.postalCode?.trim(), + countryOrRegion: values.countryOrRegion?.value || values.countryOrRegion || null, + phone: values.phone?.trim(), + tags: values.tags?.map((tag) => tag.value), + + // Booking Information + allowConflicts: values.allowConflicts, + allowRecurringMeetings: values.allowRecurringMeetings, + bookingWindowInDays: values.bookingWindowInDays, + maximumDurationInMinutes: values.maximumDurationInMinutes, + processExternalMeetingMessages: values.processExternalMeetingMessages, + forwardRequestsToDelegates: values.forwardRequestsToDelegates, + scheduleOnlyDuringWorkHours: values.scheduleOnlyDuringWorkHours, + automateProcessing: values.automateProcessing?.value || values.automateProcessing, + + // Calendar Configuration + workDays: values.workDays?.map((day) => day.value).join(","), + workHoursStartTime: values.workHoursStartTime, + workHoursEndTime: values.workHoursEndTime, + workingHoursTimeZone: values.workingHoursTimeZone?.value || values.workingHoursTimeZone, + })} + > + + {/* Basic Information */} + + + Basic Information + + + + + + + + + + + + + + {/* Booking Information */} + + + Booking Information + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {/* Working Hours */} + + + Working Hours + + + + + + + + + + + + + ({ + value: tz.standardTime, + label: `${tz.standardTime} - ${tz.timezone}`, + }))} + multiple={false} + creatable={false} + formControl={formControl} + /> + + + + + + + + + + + + + {/* Equipment & Location Details */} + + + Equipment & Location Details + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ({ + label: Name, + value: Code, + }))} + formControl={formControl} + /> + + + + + + + + + + ); +}; + +EditEquipmentMailbox.getLayout = (page) => {page}; + +export default EditEquipmentMailbox; diff --git a/src/pages/email/resources/management/equipment/index.js b/src/pages/email/resources/management/equipment/index.js new file mode 100644 index 000000000000..9a3f97e29cc5 --- /dev/null +++ b/src/pages/email/resources/management/equipment/index.js @@ -0,0 +1,83 @@ +import { Layout as DashboardLayout } from "/src/layouts/index.js"; +import { CippTablePage } from "/src/components/CippComponents/CippTablePage.jsx"; +import { Button } from "@mui/material"; +import Link from "next/link"; +import { AddBusiness, Edit, Block, LockOpen, Key } from "@mui/icons-material"; +import { TrashIcon } from "@heroicons/react/24/outline"; + +const Page = () => { + const pageTitle = "Equipment"; + + const actions = [ + { + label: "Edit Equipment", + link: `/email/resources/management/equipment/edit?equipmentId=[ExternalDirectoryObjectId]`, + icon: , + color: "info", + condition: (row) => !row.isDirSynced, + }, + { + label: "Edit permissions", + link: "/identity/administration/users/user/exchange?userId=[ExternalDirectoryObjectId]", + color: "info", + icon: , + }, + { + label: "Block Sign In", + type: "POST", + icon: , + url: "/api/ExecDisableUser", + data: { ID: "ExternalDirectoryObjectId" }, + confirmText: "Are you sure you want to block the sign-in for this equipment mailbox?", + multiPost: false, + condition: (row) => !row.isDirSynced, + }, + { + label: "Unblock Sign In", + type: "POST", + icon: , + url: "/api/ExecDisableUser", + data: { ID: "ExternalDirectoryObjectId", Enable: true }, + confirmText: "Are you sure you want to unblock sign-in for this equipment mailbox?", + multiPost: false, + condition: (row) => !row.isDirSynced, + }, + { + label: "Delete Equipment", + type: "POST", + icon: , + url: "/api/RemoveUser", + data: { ID: "ExternalDirectoryObjectId" }, + confirmText: "Are you sure you want to delete this equipment mailbox?", + multiPost: false, + condition: (row) => !row.isDirSynced, + }, + ]; + + return ( + } + > + Add Equipment + + } + /> + ); +}; + +Page.getLayout = (page) => {page}; + +export default Page; diff --git a/src/pages/email/resources/management/list-rooms/edit.jsx b/src/pages/email/resources/management/list-rooms/edit.jsx index fd84a0eea64b..20b1b6afd63c 100644 --- a/src/pages/email/resources/management/list-rooms/edit.jsx +++ b/src/pages/email/resources/management/list-rooms/edit.jsx @@ -9,162 +9,7 @@ import { useSettings } from "/src/hooks/use-settings"; import { useRouter } from "next/router"; import { ApiGetCall } from "/src/api/ApiCall"; import countryList from "/src/data/countryList.json"; - -// Create timezone options from the provided list -const createTimezoneOptions = () => { - const timezones = `Azores Standard Time (UTC-01:00) Azores -Cape Verde Standard Time (UTC-01:00) Cabo Verde Is. -UTC-02 (UTC-02:00) Co-ordinated Universal Time-02 -Greenland Standard Time (UTC-02:00) Greenland -Mid-Atlantic Standard Time (UTC-02:00) Mid-Atlantic - Old -Tocantins Standard Time (UTC-03:00) Araguaina -Paraguay Standard Time (UTC-03:00) Asuncion -E. South America Standard Time (UTC-03:00) Brasilia -SA Eastern Standard Time (UTC-03:00) Cayenne, Fortaleza -Argentina Standard Time (UTC-03:00) City of Buenos Aires -Montevideo Standard Time (UTC-03:00) Montevideo -Magallanes Standard Time (UTC-03:00) Punta Arenas -Saint Pierre Standard Time (UTC-03:00) Saint Pierre and Miquelon -Bahia Standard Time (UTC-03:00) Salvador -Newfoundland Standard Time (UTC-03:30) Newfoundland -Atlantic Standard Time (UTC-04:00) Atlantic Time (Canada) -Venezuela Standard Time (UTC-04:00) Caracas -Central Brazilian Standard Time (UTC-04:00) Cuiaba -SA Western Standard Time (UTC-04:00) Georgetown, La Paz, Manaus, San Juan -Pacific SA Standard Time (UTC-04:00) Santiago -SA Pacific Standard Time (UTC-05:00) Bogota, Lima, Quito, Rio Branco -Eastern Standard Time (Mexico) (UTC-05:00) Chetumal -Eastern Standard Time (UTC-05:00) Eastern Time (US & Canada) -Haiti Standard Time (UTC-05:00) Haiti -Cuba Standard Time (UTC-05:00) Havana -US Eastern Standard Time (UTC-05:00) Indiana (East) -Turks And Caicos Standard Time (UTC-05:00) Turks and Caicos -Central America Standard Time (UTC-06:00) Central America -Central Standard Time (UTC-06:00) Central Time (US & Canada) -Easter Island Standard Time (UTC-06:00) Easter Island -Central Standard Time (Mexico) (UTC-06:00) Guadalajara, Mexico City, Monterrey -Canada Central Standard Time (UTC-06:00) Saskatchewan -US Mountain Standard Time (UTC-07:00) Arizona -Mountain Standard Time (Mexico) (UTC-07:00) La Paz, Mazatlan -Mountain Standard Time (UTC-07:00) Mountain Time (US & Canada) -Yukon Standard Time (UTC-07:00) Yukon -Pacific Standard Time (Mexico) (UTC-08:00) Baja California -UTC-08 (UTC-08:00) Co-ordinated Universal Time-08 -Pacific Standard Time (UTC-08:00) Pacific Time (US & Canada) -Alaskan Standard Time (UTC-09:00) Alaska -UTC-09 (UTC-09:00) Co-ordinated Universal Time-09 -Marquesas Standard Time (UTC-09:30) Marquesas Islands -Aleutian Standard Time (UTC-10:00) Aleutian Islands -Hawaiian Standard Time (UTC-10:00) Hawaii -UTC-11 (UTC-11:00) Co-ordinated Universal Time-11 -Dateline Standard Time (UTC-12:00) International Date Line West -UTC (UTC) Co-ordinated Universal Time -GMT Standard Time (UTC+00:00) Dublin, Edinburgh, Lisbon, London -Greenwich Standard Time (UTC+00:00) Monrovia, Reykjavik -Sao Tome Standard Time (UTC+00:00) Sao Tome -W. Europe Standard Time (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna -Central Europe Standard Time (UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague -Romance Standard Time (UTC+01:00) Brussels, Copenhagen, Madrid, Paris -Morocco Standard Time (UTC+01:00) Casablanca -Central European Standard Time (UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb -W. Central Africa Standard Time (UTC+01:00) West Central Africa -GTB Standard Time (UTC+02:00) Athens, Bucharest -Middle East Standard Time (UTC+02:00) Beirut -Egypt Standard Time (UTC+02:00) Cairo -E. Europe Standard Time (UTC+02:00) Chisinau -West Bank Standard Time (UTC+02:00) Gaza, Hebron -South Africa Standard Time (UTC+02:00) Harare, Pretoria -FLE Standard Time (UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius -Israel Standard Time (UTC+02:00) Jerusalem -South Sudan Standard Time (UTC+02:00) Juba -Kaliningrad Standard Time (UTC+02:00) Kaliningrad -Sudan Standard Time (UTC+02:00) Khartoum -Libya Standard Time (UTC+02:00) Tripoli -Namibia Standard Time (UTC+02:00) Windhoek -Jordan Standard Time (UTC+03:00) Amman -Arabic Standard Time (UTC+03:00) Baghdad -Syria Standard Time (UTC+03:00) Damascus -Turkey Standard Time (UTC+03:00) Istanbul -Arab Standard Time (UTC+03:00) Kuwait, Riyadh -Belarus Standard Time (UTC+03:00) Minsk -Russian Standard Time (UTC+03:00) Moscow, St Petersburg -E. Africa Standard Time (UTC+03:00) Nairobi -Volgograd Standard Time (UTC+03:00) Volgograd -Iran Standard Time (UTC+03:30) Tehran -Arabian Standard Time (UTC+04:00) Abu Dhabi, Muscat -Astrakhan Standard Time (UTC+04:00) Astrakhan, Ulyanovsk -Azerbaijan Standard Time (UTC+04:00) Baku -Russia Time Zone 3 (UTC+04:00) Izhevsk, Samara -Mauritius Standard Time (UTC+04:00) Port Louis -Saratov Standard Time (UTC+04:00) Saratov -Georgian Standard Time (UTC+04:00) Tbilisi -Caucasus Standard Time (UTC+04:00) Yerevan -Afghanistan Standard Time (UTC+04:30) Kabul -West Asia Standard Time (UTC+05:00) Ashgabat, Tashkent -Qyzylorda Standard Time (UTC+05:00) Astana -Ekaterinburg Standard Time (UTC+05:00) Ekaterinburg -Pakistan Standard Time (UTC+05:00) Islamabad, Karachi -India Standard Time (UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi -Sri Lanka Standard Time (UTC+05:30) Sri Jayawardenepura -Nepal Standard Time (UTC+05:45) Kathmandu -Central Asia Standard Time (UTC+06:00) Bishkek -Bangladesh Standard Time (UTC+06:00) Dhaka -Omsk Standard Time (UTC+06:00) Omsk -Myanmar Standard Time (UTC+06:30) Yangon (Rangoon) -SE Asia Standard Time (UTC+07:00) Bangkok, Hanoi, Jakarta -Altai Standard Time (UTC+07:00) Barnaul, Gorno-Altaysk -W. Mongolia Standard Time (UTC+07:00) Hovd -North Asia Standard Time (UTC+07:00) Krasnoyarsk -N. Central Asia Standard Time (UTC+07:00) Novosibirsk -Tomsk Standard Time (UTC+07:00) Tomsk -China Standard Time (UTC+08:00) Beijing, Chongqing, Hong Kong SAR, Urumqi -North Asia East Standard Time (UTC+08:00) Irkutsk -Singapore Standard Time (UTC+08:00) Kuala Lumpur, Singapore -W. Australia Standard Time (UTC+08:00) Perth -Taipei Standard Time (UTC+08:00) Taipei -Ulaanbaatar Standard Time (UTC+08:00) Ulaanbaatar -Aus Central W. Standard Time (UTC+08:45) Eucla -Transbaikal Standard Time (UTC+09:00) Chita -Tokyo Standard Time (UTC+09:00) Osaka, Sapporo, Tokyo -North Korea Standard Time (UTC+09:00) Pyongyang -Korea Standard Time (UTC+09:00) Seoul -Yakutsk Standard Time (UTC+09:00) Yakutsk -Cen. Australia Standard Time (UTC+09:30) Adelaide -AUS Central Standard Time (UTC+09:30) Darwin -E. Australia Standard Time (UTC+10:00) Brisbane -AUS Eastern Standard Time (UTC+10:00) Canberra, Melbourne, Sydney -West Pacific Standard Time (UTC+10:00) Guam, Port Moresby -Tasmania Standard Time (UTC+10:00) Hobart -Vladivostok Standard Time (UTC+10:00) Vladivostok -Lord Howe Standard Time (UTC+10:30) Lord Howe Island -Bougainville Standard Time (UTC+11:00) Bougainville Island -Russia Time Zone 10 (UTC+11:00) Chokurdakh -Magadan Standard Time (UTC+11:00) Magadan -Norfolk Standard Time (UTC+11:00) Norfolk Island -Sakhalin Standard Time (UTC+11:00) Sakhalin -Central Pacific Standard Time (UTC+11:00) Solomon Is., New Caledonia -Russia Time Zone 11 (UTC+12:00) Anadyr, Petropavlovsk-Kamchatsky -New Zealand Standard Time (UTC+12:00) Auckland, Wellington -UTC+12 (UTC+12:00) Co-ordinated Universal Time+12 -Fiji Standard Time (UTC+12:00) Fiji -Kamchatka Standard Time (UTC+12:00) Petropavlovsk-Kamchatsky - Old -Chatham Islands Standard Time (UTC+12:45) Chatham Islands -UTC+13 (UTC+13:00) Co-ordinated Universal Time+13 -Tonga Standard Time (UTC+13:00) Nuku'alofa -Samoa Standard Time (UTC+13:00) Samoa -Line Islands Standard Time (UTC+14:00) Kiritimati Island`; - - return timezones.split('\n').map(line => { - const parts = line.trim().split(/\s{2,}/); - if (parts.length >= 2) { - return { - value: parts[0].trim(), - label: parts[1].trim(), - }; - } - return null; - }).filter(Boolean); -}; +import timezoneList from "/src/data/timezoneList.json"; // Work days options const workDaysOptions = [ @@ -177,14 +22,14 @@ const workDaysOptions = [ { value: "Saturday", label: "Saturday" }, { value: "WeekDay", label: "Weekdays (Monday-Friday)" }, { value: "WeekendDay", label: "Weekend (Saturday-Sunday)" }, - { value: "AllDays", label: "All Days" } + { value: "AllDays", label: "All Days" }, ]; // Automation Processing Options const automateProcessingOptions = [ { value: "None", label: "None - No processing" }, { value: "AutoUpdate", label: "AutoUpdate - Accept/Decline but not delete" }, - { value: "AutoAccept", label: "AutoAccept - Accept and delete" } + { value: "AutoAccept", label: "AutoAccept - Accept and delete" }, ]; const EditRoomMailbox = () => { @@ -208,10 +53,10 @@ const EditRoomMailbox = () => { // Core Properties displayName: room.displayName, hiddenFromAddressListsEnabled: room.hiddenFromAddressListsEnabled, - + // Room Booking Settings capacity: room.capacity, - + // Location Information building: room.building, floor: room.floor, @@ -223,16 +68,16 @@ const EditRoomMailbox = () => { countryOrRegion: room.countryOrRegion ? countryList.find((c) => c.Name === room.countryOrRegion)?.Code || "" : "", - + // Room Equipment audioDeviceName: room.audioDeviceName, videoDeviceName: room.videoDeviceName, displayDeviceName: room.displayDeviceName, - + // Room Features isWheelChairAccessible: room.isWheelChairAccessible, phone: room.phone, - tags: room.tags?.map(tag => ({ label: tag, value: tag })) || [], + tags: room.tags?.map((tag) => ({ label: tag, value: tag })) || [], // Calendar Properties AllowConflicts: room.AllowConflicts, @@ -246,16 +91,24 @@ const EditRoomMailbox = () => { AutomateProcessing: room.AutomateProcessing, // Calendar Configuration - WorkDays: room.WorkDays?.split(',')?.map(day => ({ - label: day.trim(), - value: day.trim() - })) || [], + WorkDays: + room.WorkDays?.split(",")?.map((day) => ({ + label: day.trim(), + value: day.trim(), + })) || [], WorkHoursStartTime: room.WorkHoursStartTime, WorkHoursEndTime: room.WorkHoursEndTime, - WorkingHoursTimeZone: room.WorkingHoursTimeZone ? { - value: room.WorkingHoursTimeZone, - label: createTimezoneOptions().find(tz => tz.value === room.WorkingHoursTimeZone)?.label || room.WorkingHoursTimeZone - } : null + WorkingHoursTimeZone: room.WorkingHoursTimeZone + ? { + value: room.WorkingHoursTimeZone, + label: timezoneList.find((tz) => tz.standardTime === room.WorkingHoursTimeZone) + ? `${room.WorkingHoursTimeZone} - ${ + timezoneList.find((tz) => tz.standardTime === room.WorkingHoursTimeZone) + ?.timezone + }` + : room.WorkingHoursTimeZone, + } + : null, }); } }, [roomInfo.isSuccess, roomInfo.data]); @@ -273,16 +126,15 @@ const EditRoomMailbox = () => { title="Edit Room Mailbox" backButtonTitle="Room Mailboxes Overview" postUrl="/api/EditRoomMailbox" - customDataformatter={(values) => ({ tenantID: tenantDomain, roomId: roomId, displayName: values.displayName?.trim(), hiddenFromAddressListsEnabled: values.hiddenFromAddressListsEnabled, - + // Room Booking Settings capacity: values.capacity, - + // Location Information building: values.building?.trim(), floor: values.floor, @@ -291,17 +143,17 @@ const EditRoomMailbox = () => { city: values.city?.trim(), state: values.state?.trim(), postalCode: values.postalCode?.trim(), - countryOrRegion: values.countryOrRegion?.value || values.countryOrRegion, - + countryOrRegion: values.countryOrRegion?.value || values.countryOrRegion || null, + // Room Equipment audioDeviceName: values.audioDeviceName?.trim(), videoDeviceName: values.videoDeviceName?.trim(), displayDeviceName: values.displayDeviceName?.trim(), - + // Room Features isWheelChairAccessible: values.isWheelChairAccessible, phone: values.phone?.trim(), - tags: values.tags?.map(tag => tag.value), + tags: values.tags?.map((tag) => tag.value), // Calendar Properties AllowConflicts: values.AllowConflicts, @@ -315,7 +167,7 @@ const EditRoomMailbox = () => { AutomateProcessing: values.AutomateProcessing?.value || values.AutomateProcessing, // Calendar Configuration - WorkDays: values.WorkDays?.map(day => day.value).join(','), + WorkDays: values.WorkDays?.map((day) => day.value).join(","), WorkHoursStartTime: values.WorkHoursStartTime, WorkHoursEndTime: values.WorkHoursEndTime, WorkingHoursTimeZone: values.WorkingHoursTimeZone?.value || values.WorkingHoursTimeZone, @@ -324,9 +176,10 @@ const EditRoomMailbox = () => { {/* Basic Information */} - Basic Information + + Basic Information + - { validators={{ required: "Display Name is required" }} /> - { formControl={formControl} /> - - {/* Booking Settings */} - Booking Settings + + Booking Settings + - { name="capacity" formControl={formControl} InputProps={{ - inputProps: { min: 0 } + inputProps: { min: 0 }, }} /> - - - { formControl={formControl} /> - { formControl={formControl} /> - { formControl={formControl} /> - { formControl={formControl} /> - { formControl={formControl} /> - { formControl={formControl} /> - - {/* Working Hours */} - Working Hours + + Working Hours + - { formControl={formControl} /> - { options={workDaysOptions} formControl={formControl} /> - - - + {" "} + ({ + value: tz.standardTime, + label: `${tz.standardTime} - ${tz.timezone}`, + }))} multiple={false} creatable={false} formControl={formControl} /> - { formControl={formControl} /> - { formControl={formControl} /> - - {/* Room Facilities */} - Room Facilities & Equipment + + Room Facilities & Equipment + - { formControl={formControl} /> - { formControl={formControl} /> - { formControl={formControl} /> - { formControl={formControl} /> - { formControl={formControl} /> - { creatable={true} /> - - {/* Location Information */} - Location Information + + Location Information + - { formControl={formControl} /> - - + - { formControl={formControl} /> - { formControl={formControl} /> - - + - { formControl={formControl} /> - { formControl={formControl} /> - { EditRoomMailbox.getLayout = (page) => {page}; -export default EditRoomMailbox; \ No newline at end of file +export default EditRoomMailbox; From dfca8998cc7bebc24bbe2038d9235b8fc55e9472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20Kj=C3=A6rg=C3=A5rd?= Date: Fri, 6 Jun 2025 11:02:51 +0200 Subject: [PATCH 2/2] fix: make goose not sad --- .../resources/management/equipment/add.jsx | 6 +- .../resources/management/equipment/edit.jsx | 54 +++++++------- .../resources/management/list-rooms/add.jsx | 8 +-- .../resources/management/list-rooms/edit.jsx | 70 +++++++++---------- 4 files changed, 69 insertions(+), 69 deletions(-) diff --git a/src/pages/email/resources/management/equipment/add.jsx b/src/pages/email/resources/management/equipment/add.jsx index 09be3044b121..a186a19e0ba5 100644 --- a/src/pages/email/resources/management/equipment/add.jsx +++ b/src/pages/email/resources/management/equipment/add.jsx @@ -43,7 +43,7 @@ const AddEquipmentMailbox = () => { > {/* Display Name */} - + { {/* Username and Domain */} - + { validators={{ required: "Username is required" }} /> - + { > {/* Basic Information */} - + Basic Information - + { /> - + { {/* Booking Information */} - + Booking Information - + { /> - + { /> - + { /> - + { /> - + { /> - + { /> - + { {/* Working Hours */} - + Working Hours - + { /> - + { /> - + { /> - + { /> - + { {/* Equipment & Location Details */} - + Equipment & Location Details - + { /> - + { /> - + { /> - + { /> - + - + { /> - + { /> - + { /> - + { > {/* Display Name */} - + { {/* Username and Domain */} - + { validators={{ required: "Username is required" }} /> - + { {/* Resource Capacity (Optional) */} - + { > {/* Basic Information */} - + Basic Information - + { validators={{ required: "Display Name is required" }} /> - + { {/* Booking Settings */} - + Booking Settings - + { }} /> - + { fullWidth /> - + { fullWidth /> - + { formControl={formControl} /> - + { formControl={formControl} /> - + { formControl={formControl} /> - + { formControl={formControl} /> - + { formControl={formControl} /> - + { {/* Working Hours */} - + Working Hours - + { formControl={formControl} /> - + { formControl={formControl} /> {" "} - + { formControl={formControl} /> - + { formControl={formControl} /> - + { {/* Room Facilities */} - + Room Facilities & Equipment - + { formControl={formControl} /> - + { formControl={formControl} /> - + { formControl={formControl} /> - + { formControl={formControl} /> - + { formControl={formControl} /> - + { {/* Location Information */} - + Location Information - + { formControl={formControl} /> - + - + { formControl={formControl} /> - + { formControl={formControl} /> - + - + { formControl={formControl} /> - + { formControl={formControl} /> - +