Skip to content

Add date count to Apply to Leave form #5

@Dark-Developer93

Description

@Dark-Developer93

Description

Currently, the Apply to Leave form allows users to select start and end dates for their leave request. To improve user experience and clarity, we should add a feature that displays the total number of days requested based on the selected date range.

Proposed Changes

  1. Modify the Apply to Leave form to calculate the number of days between the start and end dates.
  2. Display the calculated number of days prominently on the form.
  3. Update the calculation in real-time as the user selects or changes dates.

Benefits

  • Users can easily see the exact number of days they are requesting without manual calculation.
  • Reduces potential errors in leave requests.
  • Improves overall user experience and form clarity.

Acceptance Criteria

  • The form displays the total number of days requested.
  • The day count updates dynamically when start or end dates are changed.
  • The calculation accounts for weekends and holidays (if applicable to the leave policy).
  • The feature is thoroughly tested across different browsers and devices.

Additional Notes

Consider adding a tooltip or help text to explain how the day count is calculated, especially if it excludes weekends or holidays.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions