+
+
+ }
+ name="name"
+ value={formValues.name}
+ onChange={handleChange}
+ fullWidth
+ required
+ error={formValues.name === ''}
+ />
+
+
+
+ }
+ name="region"
+ value={formValues.region}
+ onChange={handleChange}
+ variant="outlined"
+ fullWidth
+ required
+ error={formValues.region === ''}
+ />
+
+
+
+ }
+ name="location"
+ value={formValues.location}
+ onChange={handleChange}
+ variant="outlined"
+ fullWidth
+ required
+ error={formValues.location === ''}
+ />
+
+
+
+ }
+ name="country"
+ value={formValues.country}
+ onChange={handleChange}
+ variant="outlined"
+ fullWidth
+ required
+ error={formValues.country === ''}
+ />
+
+
+
+ }
+ name="orderNumbers"
+ value={formValues.orderNumbers}
+ onChange={handleChange}
+ variant="outlined"
+ fullWidth
+ />
+
+
+
+ }
+ name="installationName"
+ value={formValues.installationName}
+ onChange={handleChange}
+ variant="outlined"
+ fullWidth
+ />
+
+
+ {currentUser.hasWriteAccess && (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ )}
+
+
+ {currentUser.hasWriteAccess && (
+
+ )}
+ {currentUser.hasWriteAccess && (
+
+ )}
+
+ {loading && (
+
+ )}
+ {error && (
+
+
+ setError(false)}
+ sx={{ marginLeft: '4px' }}
+ >
+
+
+
+ )}
+ {updated && (
+
+
+
+ setUpdated(false)} // Set error state to false on click
+ sx={{ marginLeft: '4px' }}
+ >
+
+
+
+ )}
+
+
+