meeting-room-booking-system / mrbs-code

MRBS application code
Other
121 stars 59 forks source link

Extract duration and weekday/weekend data from edit_entry #1981

Open jberanek opened 7 years ago

jberanek commented 7 years ago

Hi, I have been using this system for our mini school library and it has been a fantastic journey. Now that I wanted to have a row beneath the edit_entry page to tell the booker that you have booked XX hours and YY minutes on (Weekday / Weekend).

Any kind soul can share where can I extract the data from? I tried to look into the End Time JS to no avail and got lost in the codes.

Thanks and hear from the community soon.

Reported by: *anonymous

Original Ticket: mrbs/support-requests/1265

jberanek commented 7 years ago

I am not entirely sure what you are trying to achieve. The edit entry page already tells you the date and duration of the booking.

Original comment by: campbell-m

jberanek commented 7 years ago

I'm just trying to poke around the edit_entry page to extract those parameters(Hours, Minutes and Weekday/Weenend), are there any pointers to achieve that?

Original comment by: *anonymous

jberanek commented 7 years ago

You could get them using JavaScript by modifying the file js/edit_entry.js.php.

Original comment by: campbell-m

jberanek commented 7 years ago

Alright, will give it a shot thanks much Campbell, appreciaite your response. =)

Original comment by: *anonymous

jberanek commented 7 years ago

It looks like it is more difficult than it seems.. I tried to add a 'Duration' parameter after the <fieldset id="booking_controls" in edit_entry.php.

The