/modern-mrbs-theme

A modern theme for MRBS based on Bootstrap 5.0

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Modern MRBS Theme

GitHub release

A modern theme for MRBS based on Bootstrap 5.0.

Features

  • Modern look and feel
  • More lucid layout due to collapsable field groups
  • Makes MRBS installable as a PWA for easier access
  • Fully responsive and easy to use

Usage

  • Recommended: Use my mrbs docker container. This makes sure that you always have a compatible version of mrbs and removes the need of manual installation and upgrades
  • Alternative: Place the folder modern from this repo into the Themes folder of your mrbs. (eg. /var/www/mrbs/Themes) and add $theme = "modern"; to your config.inc.php. Please make sure, you are using a compatible version

Config

This theme adds some config options which you can use in your config.inc.php:

  • disable_menu_items_for_non_admins (array): Array of menu items which are not visible to non-admins. Eg:
    $disable_menu_items_for_non_admins = ["rooms", "user_list"];
  • booking_type_colors (map): Map of Booking type => Color to define colors of booking type without having to edit styling.inc. Eg:
    $booking_type_colors = array(
      'M' => "#73C78A",
      'K' => "#BEBFC2");
  • enable_pwa (bool): If set to True, the PWA is enabled. False by defualt. Eg:
    $enable_pwa = True;
  • user_can_edit_profile (bool): If set to True, the user can edit their profile using a button in the navbar. Eg:
    $user_can_edit_profile = True;

Compatibility

There is only one supported MRBS version for the latest version of the theme. Older versions won't receive any bugfixes.

  • v0.4.x (latest): MRBS 1.11.0
  • v0.3.x: MRBS 1.10.0
  • v0.2.x: MRBS 1.9.4

PLEASE NOTE

  • This theme is a quick and dirty workaround. As MRBS does not have a real theme engine, it simply injects JavaScript which then modifies the page after it is loaded.
  • Some pages may not work in certain scenarios!

Screenshots

Days Login
Create entry Entry Details