Menu

#2764 Disable (or limit) the draggable bookings

open
nobody
None
1
2023-06-02
2023-06-01
No

(Transferred from the general mailing list)

Hello

Is there a way to limit (or completely disable) the draggable feature
that modifies the bookings ?

Resizing the schedule is great, but it is very easy to duplicate one the
line below (which makes a new reservation). And once the new reservation
is made, there is no way to cancel it with the hande. We have to edit
and remove the reservation.

My users will be lost with this feature.

Is it possible to limite the resizing to the schedule and not the room ?

Thanks !

Discussion

  • Campbell Morrison

    If you don't want users to be able to book multiple rooms then you can do this without changing the MRBS code with the following config setting:

    $auth['only_admin_can_select_multiroom'] = true;
    

    That will stop ordinary users being able to drag across rooms. But it will also stop them from booking multiple rooms on the edit_entry.php booking form, so may not be suitable for you.

    Otherwise you'd have to change the MRBS code, though the change is probably fairly simple and I could maybe make it a configuration setting.

     
  • Florence Henry

    Florence Henry - 2023-06-02

    Thanks for studying my request.

    I do not want to prevent users from booking multiple rooms.

    I found a CSS solution, but it may habe unexpected drawbacks. I put this code in the css/custom.css :

    .ui-resizable .ui-resizable-handle.ui-resizable-s,
    .ui-resizable .ui-resizable-handle.ui-resizable-n,
    .ui-resizable .ui-resizable-handle.ui-resizable-se,
    .ui-resizable .ui-resizable-handle.ui-resizable-ne,
    .ui-resizable .ui-resizable-handle.ui-resizable-sw,
    .ui-resizable .ui-resizable-handle.ui-resizable-nw {
           display: none !important;
    }
    

    I only let the east and west handles that let users to resize in time

     

    Last edit: Campbell Morrison 2023-06-02
  • Campbell Morrison

    Yes, that should work, though of course if you change the "times along the top" mode you'll need to change the CSS. But when you are in "times along the top" mode the main table has a class "times-along-top" so you can use that to refine your CSS.