Skip to content

Commit

Permalink
Remove chartfield information
Browse files Browse the repository at this point in the history
  • Loading branch information
rlho committed Oct 23, 2023
1 parent fce666a commit 1b0d88e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ export const Bookings = () => {
mediaServicesDetails: values[23],
catering: values[24],
cateringService: values[25],
chartfieldInformation: values[26],
hireSecurity: values[27],
hireSecurity: values[26],
};
};

Expand Down Expand Up @@ -370,9 +369,7 @@ export const Bookings = () => {
</td>
<td className="px-2 py-4 w-18">{booking.catering}</td>
<td className="px-2 py-4 w-18">{booking.cateringService}</td>
<td className="px-2 py-4 w-18">
{booking.chartfieldInformation}
</td>

<td className="px-2 py-4 w-18">{booking.hireSecurity}</td>
</tr>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ <h2>Room Reservation Request</h2>
Catering Details:
<?= cateringService ?>
</p>
<p>
Chartfield Information:
<?= chartfieldInformation ?>
</p>

<p>
Hire Security:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const Calendars = ({

const allEvents = calendarApi.getEvents();
return allEvents.some((event) => {
if (event.title.includes('Reserve')) return false;
if (event.title.includes(TITLE_TAG)) return false;
return (
(event.start >= info.start && event.start < info.end) ||
(event.end > info.start && event.end <= info.end) ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export type Inputs = {
catering: string;
hireSecurity: string;
expectedAttendance: string;
chartfieldInformation: string;
cateringService: string;
missingEmail?: string;
};
Expand All @@ -50,7 +49,6 @@ const FormInput = ({ hasEmail, roomNumber, handleParentSubmit }) => {
defaultValues: {
setupDetails: '',
cateringService: '',
chartfieldInformation: '',
sponsorFirstName: '',
sponsorLastName: '',
sponsorEmail: '',
Expand All @@ -65,17 +63,11 @@ const FormInput = ({ hasEmail, roomNumber, handleParentSubmit }) => {
mode: 'onBlur',
});
const [checklist, setChecklist] = useState(false);
const [agreement, setAgreement] = useState(false);
const [resetRoom, setResetRoom] = useState(false);
const [bookingPolicy, setBookingPolicy] = useState(false);
const [showTextbox, setShowTextbox] = useState(false);

const disabledButton = !(
checklist &&
agreement &&
resetRoom &&
bookingPolicy
);
const disabledButton = !(checklist && resetRoom && bookingPolicy);
useEffect(() => {
trigger();
}, [trigger]);
Expand Down Expand Up @@ -617,7 +609,19 @@ const FormInput = ({ hasEmail, roomNumber, handleParentSubmit }) => {
(For Audio Lab 230) Request an audio technician
</label>
)}

{roomNumber.some((room) =>
[220, 221, 222, 223, 224].includes(Number(room))
) && (
<label key={'103audioTechnician'}>
<input
type="checkbox"
value="(For Garage 103) Request an audio technician"
name="mediaServices"
{...register('mediaServices')}
/>
(For 220-224) Using lights in ceiling grid
</label>
)}
{roomNumber.includes('202') ||
(roomNumber.includes('1201') && (
<label key={'support'}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ const SheetEditor = () => {
'mediaServicesDetails',
'catering',
'cateringService',
'chartfieldInformation',
'hireSecurity',
];

Expand Down
3 changes: 1 addition & 2 deletions media_commons_booking_app/src/server/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export const bookingContents = (id) => {
mediaServicesDetails: values[24],
catering: values[25],
cateringService: values[26],
chartfieldInformation: values[27],
hireSecurity: values[28],
hireSecurity: values[27],
approvalUrl: approvalUrl(id),
rejectedUrl: rejectUrl(id),
};
Expand Down

0 comments on commit 1b0d88e

Please sign in to comment.