Open jberanek opened 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
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
You could get them using JavaScript by modifying the file js/edit_entry.js.php.
Original comment by: campbell-m
Alright, will give it a shot thanks much Campbell, appreciaite your response. =)
Original comment by: *anonymous
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
So with that one parameter, I need to add in much more controls than I initially though it should be.
@Campbell Are there any shorter way without rewriting/modify the existing JS code to update the duration parameter at every scenario?
Original comment by: *anonymous
Not really. The duration is going to change every time you change the start or end times. And if you switch area then you could find yourself in an area which uses a different mode or different resolution, so the duration is going to change again then. In other words you're going to have to use JavaScript.
I'm still not really clear what you're trying to achieve and why.
Original comment by: campbell-m
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