Skip to content

Calendar

Ed Mozley edited this page May 13, 2026 · 1 revision

Calendar

Folder: calendar/ Colour: Orange #ef6c00

Event calendar with configurable categories — distinct from the Change Management calendar and the Tickets scheduling calendar (which is filtered to ticket work-start dates).

Views

  • Month view with full grid
  • Week view with hourly time slots
  • Day view for detailed scheduling

Drag-and-Drop

In month view, drag events between days to reschedule. Updates the database immediately; no save button.

Categories

Each category has:

  • A display name
  • A colour (used on the calendar and in filter dots)
  • Active/inactive flag

Events are filtered by category via toggleable colour swatches at the top of the calendar.

Adjacent-Month Context

Events from adjacent months are visible in the leading/trailing day cells of the current month view — so you don't lose context of what's next when scanning a month grid.

Contracts Integration

From any contract's view page, a Calendar button opens an inline modal pre-filled with sensible defaults (title from contract number + title, start date from end date or notice date) and the new event is linked back to the contract via contract_id. The contract view shows Related Calendar Events in a section below the contract details.

Help

Interactive guide at calendar/help.php covering calendar views, event creation, categories, settings configuration, and scheduling tips for IT teams.

Key Tables

Table Purpose
calendar_events Core event record (start/end datetimes, all-day flag, location, description, category_id, optional contract_id)
calendar_categories Category definitions (name, colour, is_active)

Clone this wiki locally