meeting-room-booking-system / mrbs-code

MRBS application code
Other
128 stars 64 forks source link

Workdays #1951

Open jberanek opened 7 years ago

jberanek commented 7 years ago

What should you do to make reservations only from Monday to Friday (only workdays)? That is, Saturdays and Sundays (and, if possible, holidays or dates) must not be clickable / bookable. Thank you and sorry for my english Ciro

Reported by: *anonymous

Original Ticket: mrbs/support-requests/1235

jberanek commented 7 years ago

You should look at this section of systemdefaults.inc.php:

// Days of the week that should be hidden from display
// 0 for Sunday, 1 for Monday, etc.
// For example, if you want Saturdays and Sundays to be hidden set $hidden_days = array(0,6);
//
// By default the hidden days will be removed completely from the main table in the week and month
// views.   You can alternatively arrange for them to be shown as narrow, greyed-out columns
// by editing the CSS file.   Look for $column_hidden_width in mrbs.css.php.
//
// [Note that although they are hidden from display in the week and month views, they
// can still be booked from the edit_entry form and you can display the bookings by
// jumping straight into the day view from the date selector.]
$hidden_days = array();

Original comment by: jberanek

jberanek commented 7 years ago

So, for your case add the following to config.inc.php:

$hidden_days = array(0,6);

Original comment by: jberanek

jberanek commented 7 years ago

thanks, thanks, thanks

Original comment by: *anonymous