Frontend
Masters
Holiday Master

Holiday Master Documentation

Navigation Path

Company → Masters → Holiday Master


1. Holiday List Page

URL

/masters/holiday-master

Page Description

  • Displays a list of all holidays configured in the system
  • Allows administrators to manage unit-wise and national holidays
  • Provides options to add, edit, and delete holiday records

List Table Columns

Column NameDescription
S NoSerial number
YearHoliday year
Holiday NameName of the holiday
UnitAssociated unit
DateHoliday date
National HolidayIndicates if it is a national holiday
ActionsEdit and Delete options

Row Actions

ActionDescription
EditOpens Edit Holiday page
DeleteOpens delete confirmation alert

2. Add Holiday

Triggered From

Holiday List Page → Add Holiday button

Page Description

  • Allows admins to add a new holiday
  • Supports unit-specific and national holidays

Add Holiday – Fields

Field NameTypeMandatoryDescription
YearDropdownYesSelect holiday year
Holiday NameText InputYesEnter holiday name
UnitSelect / CreateNoSelect or create a unit
DateDate PickerYesSelect holiday date
Is National HolidayCheckboxNoMark as national holiday

Actions

ActionBehavior
SaveValidates and saves the holiday
ResetClears all entered values
CancelReturns to Holiday List page

Validation Rules

  • Year must be selected
  • Holiday Name cannot be empty
  • Date is mandatory
  • Duplicate holidays for the same date and unit may not be allowed

3. Edit Holiday

Triggered From

Holiday List Page → Edit icon

URL

/masters/holiday-master/edit-holiday-master/:id

Page Description

  • Allows updating existing holiday details
  • All fields are pre-filled with saved data

Editable Fields

Field NameEditable
YearYes
Holiday NameYes
UnitYes
DateYes
Is National HolidayYes

Actions

ActionBehavior
UpdateSaves updated holiday details
CancelDiscards changes and navigates back

4. Delete Holiday Confirmation Alert

Triggered From

Holiday List Page → Delete icon

Alert Content

  • Confirmation message before deletion

Actions:

  • Confirm / Yes → Deletes the holiday
  • Cancel → Closes the alert without action

Delete Behavior

  • Holiday is permanently removed after confirmation
  • Deletion may be restricted if the holiday is mapped to other records

End of Documentation